HHH-15255 fix org.hibernate.orm.test.batch.BatchTest
This commit is contained in:
parent
d03588fd29
commit
5d6e9a1fdb
|
@ -30,8 +30,6 @@ public class BatchingBatch extends AbstractBatchImpl {
|
||||||
BatchingBatch.class.getName()
|
BatchingBatch.class.getName()
|
||||||
);
|
);
|
||||||
|
|
||||||
// IMPL NOTE : Until HHH-5797 is fixed, there will only be 1 statement in a batch
|
|
||||||
|
|
||||||
private int batchSize;
|
private int batchSize;
|
||||||
private final int configuredBatchSize;
|
private final int configuredBatchSize;
|
||||||
private int batchPosition;
|
private int batchPosition;
|
||||||
|
|
|
@ -80,7 +80,7 @@ public class BatchTest extends BaseCoreFunctionalTestCase {
|
||||||
dp.setX( new BigDecimal( i * 0.1d ).setScale( 19, BigDecimal.ROUND_DOWN ) );
|
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 ) );
|
dp.setY( new BigDecimal( Math.cos( dp.getX().doubleValue() ) ).setScale( 19, BigDecimal.ROUND_DOWN ) );
|
||||||
s.save( dp );
|
s.save( dp );
|
||||||
if ( i + 1 % nBeforeFlush == 0 ) {
|
if ( ( i + 1 ) % nBeforeFlush == 0 ) {
|
||||||
s.flush();
|
s.flush();
|
||||||
s.clear();
|
s.clear();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue