Skip to content

Commit c9ffbdc

Browse files
committed
revert moreresults condition
revert moreresults condition
1 parent 830741d commit c9ffbdc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/apache/ibatis/executor/resultset/DefaultResultSetHandler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ private ResultSetWrapper getNextResultSet(Statement stmt) throws SQLException {
253253
try {
254254
if (stmt.getConnection().getMetaData().supportsMultipleResultSets()) {
255255
// Crazy Standard JDBC way of determining if there are more results
256-
if (stmt.getMoreResults() || stmt.getUpdateCount() != -1) {
256+
if (!((!stmt.getMoreResults()) && (stmt.getUpdateCount() == -1))){
257257
ResultSet rs = stmt.getResultSet();
258258
if (rs == null) {
259259
return getNextResultSet(stmt);

0 commit comments

Comments
 (0)