We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1df8f0e commit ba7fe1aCopy full SHA for ba7fe1a
src/main/java/org/apache/ibatis/jdbc/ScriptRunner.java
@@ -248,7 +248,9 @@ private void executeStatement(String command) throws SQLException {
248
}
249
try {
250
boolean hasResults = statement.execute(sql);
251
- while ((hasResults || (statement.getUpdateCount() != -1))) {
+ // DO NOT try to 'imporove' the condition even if IDE tells you to!
252
+ // It's important that getUpdateCount() is called here.
253
+ while (!(!hasResults && statement.getUpdateCount() == -1)) {
254
checkWarnings(statement);
255
printResults(statement, hasResults);
256
hasResults = statement.getMoreResults();
0 commit comments