Skip to content

Commit ccf497b

Browse files
committed
HHH-17223 Test fix for HANA
1 parent 50a83ba commit ccf497b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hibernate-core/src/test/java/org/hibernate/orm/test/jpa/criteria/basic/ExpressionsTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ public void testSumWithCoalesce() {
275275
final Root<Product> root = criteria.from( Product.class );
276276
criteria.select(
277277
builder.sum(
278-
builder.coalesce( root.get( "quantity" ), 5 )
278+
builder.coalesce( root.get( "quantity" ), builder.literal( 5 ) )
279279
)
280280
).groupBy( root.get( "id" ) );
281281
final Integer result = entityManager.createQuery( criteria ).getSingleResult();

0 commit comments

Comments
 (0)