HHH-10843 : Fix QuerySyntaxException when use CriteriaBuilder.concat in selectCase expression
(cherry picked from commit 5b255fa0c2
)
This commit is contained in:
parent
ec8aa4ecc3
commit
a3da71e5f8
|
@ -64,9 +64,9 @@ public class ConcatExpression extends ExpressionImpl<String> implements Serializ
|
|||
}
|
||||
|
||||
public String render(RenderingContext renderingContext) {
|
||||
return ( (Renderable) getString1() ).render( renderingContext )
|
||||
return '(' + ((Renderable) getString1() ).render( renderingContext )
|
||||
+ " || "
|
||||
+ ( (Renderable) getString2() ).render( renderingContext );
|
||||
+ ( (Renderable) getString2() ).render( renderingContext ) + ')' ;
|
||||
}
|
||||
|
||||
public String renderProjection(RenderingContext renderingContext) {
|
||||
|
|
Loading…
Reference in New Issue