Enable dbms output before execute
This commit is contained in:
@@ -40,6 +40,8 @@ public class SqlExecutor {
|
|||||||
private static final long MAX_ROWS = 10L;
|
private static final long MAX_ROWS = 10L;
|
||||||
|
|
||||||
public static Result execute(Connection conn, String sql) throws SQLException, JsonProcessingException {
|
public static Result execute(Connection conn, String sql) throws SQLException, JsonProcessingException {
|
||||||
|
enableDbOutput(conn);
|
||||||
|
|
||||||
log.trace("SQL: " + sql.trim());
|
log.trace("SQL: " + sql.trim());
|
||||||
|
|
||||||
@Cleanup
|
@Cleanup
|
||||||
@@ -313,8 +315,6 @@ public class SqlExecutor {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private static List<String> parseDbOutput(Connection conn) throws SQLException {
|
private static List<String> parseDbOutput(Connection conn) throws SQLException {
|
||||||
enableDbOutput(conn);
|
|
||||||
|
|
||||||
List<String> result = new Vector<>();
|
List<String> result = new Vector<>();
|
||||||
|
|
||||||
@Cleanup
|
@Cleanup
|
||||||
|
Reference in New Issue
Block a user