HHH-17223 Test fix for HANA

This commit is contained in:
Marco Belladelli 2023-10-06 11:35:58 +02:00
parent 50a83ba953
commit ccf497b2d8
1 changed files with 1 additions and 1 deletions

View File

@ -275,7 +275,7 @@ public class ExpressionsTest extends AbstractMetamodelSpecificTest {
final Root<Product> root = criteria.from( Product.class );
criteria.select(
builder.sum(
builder.coalesce( root.get( "quantity" ), 5 )
builder.coalesce( root.get( "quantity" ), builder.literal( 5 ) )
)
).groupBy( root.get( "id" ) );
final Integer result = entityManager.createQuery( criteria ).getSingleResult();