Skip to content

Commit 36625c1

Browse files
committed
fix test on EDB
1 parent 663ee87 commit 36625c1

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

hibernate-core/src/test/java/org/hibernate/orm/test/query/hql/FunctionTests.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2045,7 +2045,16 @@ public void testIntervalDiffExpressions(SessionFactoryScope scope) {
20452045
.list();
20462046
session.createQuery("select (e.theTimestamp - (e.theTimestamp + (4 day + 2 hour))) by second from EntityOfBasics e", Long.class)
20472047
.list();
2048+
}
2049+
);
2050+
}
20482051

2052+
@Test
2053+
@SkipForDialect(dialectClass = PostgresPlusDialect.class,
2054+
reason = "PT47H59M59.999999S instead of PT48H")
2055+
public void testIntervalDiffExpressionsWithAssertions(SessionFactoryScope scope) {
2056+
scope.inTransaction(
2057+
session -> {
20492058
assertThat( session.createQuery("select (local datetime + 2 day) - local datetime").getSingleResult(),
20502059
is( Duration.ofDays( 2 ) ) );
20512060
assertThat( session.createQuery("select (local datetime - 12 hour) - local datetime").getSingleResult(),

0 commit comments

Comments
 (0)