We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 030e1fd commit 53922d3Copy full SHA for 53922d3
hibernate-core/src/test/java/org/hibernate/orm/test/query/hql/FunctionTests.java
@@ -525,6 +525,8 @@ public void testMathFunctions(SessionFactoryScope scope) {
525
.list();
526
session.createQuery("select round(cast(e.theDouble as BigDecimal), 3) from EntityOfBasics e", BigDecimal.class)
527
528
+ assertThat( session.createQuery("select round(1.2345bd, 2)").getSingleResult(),
529
+ isOneOf(BigDecimal.valueOf(1.23), BigDecimal.valueOf(1.2300)) );
530
assertThat( session.createQuery("select abs(-2)", Integer.class).getSingleResult(), is(2) );
531
assertThat( session.createQuery("select sign(-2)", Integer.class).getSingleResult(), is(-1) );
532
assertThat(
0 commit comments