Skip to content

Commit 8d9019e

Browse files
committed
HHH-15482 CoercionException in criteria simple case statement
1 parent e9f0931 commit 8d9019e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hibernate-core/src/main/java/org/hibernate/query/sqm/tree/expression/SqmCaseSimple.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ public JpaSimpleCase<T, R> when(T condition, R result) {
196196
@Override
197197
public JpaSimpleCase<T, R> when(T condition, Expression<? extends R> result) {
198198
//noinspection unchecked
199-
when( nodeBuilder().value( condition, (SqmExpression<T>) result ), (SqmExpression<R>) result );
199+
when( nodeBuilder().value( condition, fixture ), (SqmExpression<R>) result );
200200
return this;
201201
}
202202

0 commit comments

Comments
 (0)