There was an error while loading. Please reload this page.
1 parent 50a83ba commit ccf497bCopy full SHA for ccf497b
hibernate-core/src/test/java/org/hibernate/orm/test/jpa/criteria/basic/ExpressionsTest.java
@@ -275,7 +275,7 @@ public void testSumWithCoalesce() {
275
final Root<Product> root = criteria.from( Product.class );
276
criteria.select(
277
builder.sum(
278
-builder.coalesce( root.get( "quantity" ), 5 )
+builder.coalesce( root.get( "quantity" ), builder.literal( 5 ) )
279
)
280
).groupBy( root.get( "id" ) );
281
final Integer result = entityManager.createQuery( criteria ).getSingleResult();
0 commit comments