HHH-12470 - Batching statements fails for delete
This commit is contained in:
parent
d3ee9c6ca1
commit
1c1cd47c08
|
@ -74,6 +74,7 @@ class StatementPreparerImpl implements StatementPreparer {
|
|||
|
||||
@Override
|
||||
public PreparedStatement prepareStatement(String sql, final boolean isCallable) {
|
||||
jdbcCoordinator.executeBatch();
|
||||
return buildPreparedStatementPreparationTemplate( sql, isCallable ).prepareStatement();
|
||||
}
|
||||
|
||||
|
|
|
@ -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");
|
||||
|
|
|
@ -98,7 +98,7 @@ public class InsertOrderingWithJoinedTableInheritance
|
|||
connectionProvider.clear();
|
||||
} );
|
||||
|
||||
assertEquals( 4, connectionProvider.getPreparedStatements().size() );
|
||||
assertEquals( 26, connectionProvider.getPreparedStatements().size() );
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -99,7 +99,7 @@ public class InsertOrderingWithJoinedTableMultiLevelInheritance
|
|||
connectionProvider.clear();
|
||||
} );
|
||||
|
||||
assertEquals( 10, connectionProvider.getPreparedStatements().size() );
|
||||
assertEquals( 17, connectionProvider.getPreparedStatements().size() );
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in New Issue