diff --git a/hibernate-core/src/test/java/org/hibernate/orm/test/query/hql/FunctionTests.java b/hibernate-core/src/test/java/org/hibernate/orm/test/query/hql/FunctionTests.java index 692d2289b287..7e4d09a2425b 100644 --- a/hibernate-core/src/test/java/org/hibernate/orm/test/query/hql/FunctionTests.java +++ b/hibernate-core/src/test/java/org/hibernate/orm/test/query/hql/FunctionTests.java @@ -526,7 +526,7 @@ public void testMathFunctions(SessionFactoryScope scope) { session.createQuery("select round(cast(e.theDouble as BigDecimal), 3) from EntityOfBasics e", BigDecimal.class) .list(); assertThat( session.createQuery("select round(1.2345bd, 2)").getSingleResult(), - isOneOf(BigDecimal.valueOf(1.23), BigDecimal.valueOf(1.2300)) ); + isOneOf(BigDecimal.valueOf(1.23), BigDecimal.valueOf(12300,4)) ); assertThat( session.createQuery("select abs(-2)", Integer.class).getSingleResult(), is(2) ); assertThat( session.createQuery("select sign(-2)", Integer.class).getSingleResult(), is(-1) ); assertThat(