diff --git a/hibernate-core/src/main/java/org/hibernate/query/sqm/tree/expression/SqmCaseSimple.java b/hibernate-core/src/main/java/org/hibernate/query/sqm/tree/expression/SqmCaseSimple.java index 19caca0a04..41bdf80c75 100644 --- a/hibernate-core/src/main/java/org/hibernate/query/sqm/tree/expression/SqmCaseSimple.java +++ b/hibernate-core/src/main/java/org/hibernate/query/sqm/tree/expression/SqmCaseSimple.java @@ -196,7 +196,7 @@ public class SqmCaseSimple @Override public JpaSimpleCase when(T condition, Expression result) { //noinspection unchecked - when( nodeBuilder().value( condition, (SqmExpression) result ), (SqmExpression) result ); + when( nodeBuilder().value( condition, fixture ), (SqmExpression) result ); return this; }