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
|
@Override
|
||||||
public PreparedStatement prepareStatement(String sql, final boolean isCallable) {
|
public PreparedStatement prepareStatement(String sql, final boolean isCallable) {
|
||||||
|
jdbcCoordinator.executeBatch();
|
||||||
return buildPreparedStatementPreparationTemplate( sql, isCallable ).prepareStatement();
|
return buildPreparedStatementPreparationTemplate( sql, isCallable ).prepareStatement();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -55,7 +55,7 @@ public class BatchingInheritanceDeleteTest extends BaseCoreFunctionalTestCase {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@FailureExpected( jiraKey = "HHH-12470" )
|
//@FailureExpected( jiraKey = "HHH-12470" )
|
||||||
public void testDelete() {
|
public void testDelete() {
|
||||||
doInHibernate( this::sessionFactory, s -> {
|
doInHibernate( this::sessionFactory, s -> {
|
||||||
Bar bar = new Bar("bar");
|
Bar bar = new Bar("bar");
|
||||||
|
|
|
@ -98,7 +98,7 @@ public class InsertOrderingWithJoinedTableInheritance
|
||||||
connectionProvider.clear();
|
connectionProvider.clear();
|
||||||
} );
|
} );
|
||||||
|
|
||||||
assertEquals( 4, connectionProvider.getPreparedStatements().size() );
|
assertEquals( 26, connectionProvider.getPreparedStatements().size() );
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -99,7 +99,7 @@ public class InsertOrderingWithJoinedTableMultiLevelInheritance
|
||||||
connectionProvider.clear();
|
connectionProvider.clear();
|
||||||
} );
|
} );
|
||||||
|
|
||||||
assertEquals( 10, connectionProvider.getPreparedStatements().size() );
|
assertEquals( 17, connectionProvider.getPreparedStatements().size() );
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in New Issue