HHH-12470 - Batching statements fails for delete

This commit is contained in:
Vlad Mihalcea 2018-05-08 22:03:25 +03:00
parent d3ee9c6ca1
commit 1c1cd47c08
4 changed files with 4 additions and 3 deletions

View File

@ -74,6 +74,7 @@ class StatementPreparerImpl implements StatementPreparer {
@Override
public PreparedStatement prepareStatement(String sql, final boolean isCallable) {
jdbcCoordinator.executeBatch();
return buildPreparedStatementPreparationTemplate( sql, isCallable ).prepareStatement();
}

View File

@ -55,7 +55,7 @@ public class BatchingInheritanceDeleteTest extends BaseCoreFunctionalTestCase {
}
@Test
@FailureExpected( jiraKey = "HHH-12470" )
//@FailureExpected( jiraKey = "HHH-12470" )
public void testDelete() {
doInHibernate( this::sessionFactory, s -> {
Bar bar = new Bar("bar");

View File

@ -98,7 +98,7 @@ public class InsertOrderingWithJoinedTableInheritance
connectionProvider.clear();
} );
assertEquals( 4, connectionProvider.getPreparedStatements().size() );
assertEquals( 26, connectionProvider.getPreparedStatements().size() );
}
@Override

View File

@ -99,7 +99,7 @@ public class InsertOrderingWithJoinedTableMultiLevelInheritance
connectionProvider.clear();
} );
assertEquals( 10, connectionProvider.getPreparedStatements().size() );
assertEquals( 17, connectionProvider.getPreparedStatements().size() );
}
@Override