File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
hibernate-core/src/main/java/org/hibernate/engine/jdbc/batch/internal Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -303,12 +303,11 @@ protected void performExecution() {
303
303
private void checkRowCounts (int [] rowCounts , PreparedStatementDetails statementDetails ) throws SQLException , HibernateException {
304
304
final int numberOfRowCounts = rowCounts .length ;
305
305
if ( batchPosition != 0 ) {
306
- final int expectedNumberOfCounts = batchPosition / getStatementGroup ().getNumberOfStatements ();
307
- if ( numberOfRowCounts != expectedNumberOfCounts ) {
306
+ if ( numberOfRowCounts != batchPosition ) {
308
307
JDBC_MESSAGE_LOGGER .unexpectedRowCounts (
309
308
statementDetails .getMutatingTableDetails ().getTableName (),
310
309
numberOfRowCounts ,
311
- expectedNumberOfCounts
310
+ batchPosition
312
311
);
313
312
}
314
313
}
You can’t perform that action at this time.
0 commit comments