HHH14119: optimice the code following NathanQingyangXu suggestions
This commit is contained in:
parent
e4c5882c32
commit
5674c1a285
|
@ -228,7 +228,7 @@ public class InPredicate<T>
|
|||
int bindValuePaddingCount = MathHelper.ceilingPowerOfTwo(bindValueCount);
|
||||
|
||||
if ( inExprLimit > 0 && bindValuePaddingCount > inExprLimit ) {
|
||||
bindValuePaddingCount = Math.max(bindValueCount, inExprLimit);
|
||||
bindValuePaddingCount = inExprLimit;
|
||||
}
|
||||
|
||||
if ( bindValueCount < bindValuePaddingCount ) {
|
||||
|
|
|
@ -100,7 +100,7 @@ public class InClauseParameterPaddingCriteriaTest extends BaseEntityManagerFunct
|
|||
|
||||
|
||||
@Test
|
||||
public void testInClauseParameterPadding2() {
|
||||
public void testInClauseParameterBindingPadding() {
|
||||
sqlStatementInterceptor.clear();
|
||||
|
||||
doInJPA( this::entityManagerFactory, entityManager -> {
|
||||
|
|
Loading…
Reference in New Issue