HHH-15850 Check if escape character is null in QuerySplitter

This commit is contained in:
Marco Belladelli 2022-12-21 16:38:33 +01:00 committed by Christian Beikov
parent 061fb1e59c
commit 6e87b38aee
1 changed files with 3 additions and 1 deletions

View File

@ -913,6 +913,8 @@ public class QuerySplitter {
return new SqmLikePredicate(
(SqmExpression<?>) predicate.getMatchExpression().accept( this ),
(SqmExpression<?>) predicate.getPattern().accept( this ),
predicate.getEscapeCharacter() == null ?
null :
(SqmExpression<?>) predicate.getEscapeCharacter().accept( this ),
predicate.nodeBuilder()
);