diff --git a/src/main/java/at/compax/tools/sql/SqlExecutor.java b/src/main/java/at/compax/tools/sql/SqlExecutor.java index c488b29..9fda7dc 100644 --- a/src/main/java/at/compax/tools/sql/SqlExecutor.java +++ b/src/main/java/at/compax/tools/sql/SqlExecutor.java @@ -40,6 +40,8 @@ public class SqlExecutor { private static final long MAX_ROWS = 10L; public static Result execute(Connection conn, String sql) throws SQLException, JsonProcessingException { + enableDbOutput(conn); + log.trace("SQL: " + sql.trim()); @Cleanup @@ -313,8 +315,6 @@ public class SqlExecutor { } private static List parseDbOutput(Connection conn) throws SQLException { - enableDbOutput(conn); - List result = new Vector<>(); @Cleanup