HHH-17493 Ensure case insensitivity is retained in negated copy

This commit is contained in:
Christian Beikov 2024-03-28 16:42:31 +01:00
parent 6717c7cba0
commit 7e29539153
1 changed files with 8 additions and 7 deletions

View File

@ -143,12 +143,13 @@ public class SqmLikePredicate extends AbstractNegatableSqmPredicate {
@Override
protected SqmNegatablePredicate createNegatedNode() {
return new SqmLikePredicate( matchExpression, pattern, escapeCharacter, !isNegated(), nodeBuilder() );
}
@Override
public SqmNegatablePredicate not() {
negate();
return this;
return new SqmLikePredicate(
matchExpression,
pattern,
escapeCharacter,
!isNegated(),
isCaseSensitive,
nodeBuilder()
);
}
}