Skip to content

Commit ea587e7

Browse files
committed
[#2535] Fix operations order in BatchingConnection
1 parent e5f114d commit ea587e7

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
@@ -104,9 +104,8 @@ public CompletionStage<Void> update(
104104
return voidFuture();
105105
}
106106
else {
107-
CompletionStage<Void> lastBatch = executeBatch();
108-
newBatch( sql, paramValues, expectation );
109-
return lastBatch;
107+
return executeBatch()
108+
.thenAccept( v -> newBatch( sql, paramValues, expectation ) );
110109
}
111110
}
112111
}

0 commit comments

Comments
 (0)