Skip to content

Commit dc1ff79

Browse files
committed
[#2535] Fix operations order in BatchingConnection
1 parent 21a019c commit dc1ff79

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

hibernate-reactive-core/src/main/java/org/hibernate/reactive/pool/BatchingConnection.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,9 +106,8 @@ public CompletionStage<Void> update(
106106
return voidFuture();
107107
}
108108
else {
109-
CompletionStage<Void> lastBatch = executeBatch();
110-
newBatch( sql, paramValues, expectation );
111-
return lastBatch;
109+
return executeBatch()
110+
.thenAccept( v -> newBatch( sql, paramValues, expectation ) );
112111
}
113112
}
114113
}

0 commit comments

Comments
 (0)