提交 27c8bcf5 编写于 作者: S serge-rider

Debug queries fix (get rid of dummy results)

上级 32355a80
......@@ -113,7 +113,7 @@ public abstract class DBGJDBCSession implements DBGSession {
try (JDBCSession session = getControllerConnection().openSession(monitor, DBCExecutionPurpose.UTIL, "Add breakpoint")) {
try (Statement stmt = session.createStatement()) {
String sqlQuery = composeAddBreakpointCommand(descriptor);
stmt.executeQuery(sqlQuery);
stmt.execute(sqlQuery);
} catch (SQLException e) {
throw new DBGException("SQL error", e);
}
......@@ -128,7 +128,7 @@ public abstract class DBGJDBCSession implements DBGSession {
try (JDBCSession session = getControllerConnection().openSession(monitor, DBCExecutionPurpose.UTIL, "Remove breakpoint")) {
try (Statement stmt = session.createStatement()) {
String sqlCommand = composeRemoveBreakpointCommand(bp);
stmt.executeQuery(sqlCommand);
stmt.execute(sqlCommand);
} catch (SQLException e) {
throw new DBGException("SQL error", e);
}
......
......@@ -53,7 +53,7 @@ public class DBGJDBCWorker extends AbstractJob {
monitor.subTask(sql);
try (Statement stmt = session.createStatement()) {
debugSession.fireEvent(before);
stmt.executeQuery(sql);
stmt.execute(sql);
debugSession.fireEvent(after);
return Status.OK_STATUS;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册