HHH-15255 fix org.hibernate.orm.test.batch.BatchTest

This commit is contained in:
Nathan Xu 2022-05-06 22:24:49 -04:00 committed by Christian Beikov
parent d03588fd29
commit 5d6e9a1fdb
2 changed files with 1 additions and 3 deletions

View File

@ -30,8 +30,6 @@ public class BatchingBatch extends AbstractBatchImpl {
BatchingBatch.class.getName()
);
// IMPL NOTE : Until HHH-5797 is fixed, there will only be 1 statement in a batch
private int batchSize;
private final int configuredBatchSize;
private int batchPosition;

View File

@ -80,7 +80,7 @@ public class BatchTest extends BaseCoreFunctionalTestCase {
dp.setX( new BigDecimal( i * 0.1d ).setScale( 19, BigDecimal.ROUND_DOWN ) );
dp.setY( new BigDecimal( Math.cos( dp.getX().doubleValue() ) ).setScale( 19, BigDecimal.ROUND_DOWN ) );
s.save( dp );
if ( i + 1 % nBeforeFlush == 0 ) {
if ( ( i + 1 ) % nBeforeFlush == 0 ) {
s.flush();
s.clear();
}