@@ -1093,6 +1093,7 @@ public void testCastInvalidStringToBoolean(SessionFactoryScope scope) {
1093
1093
@ SkipForDialect (dialectClass = DerbyDialect .class )
1094
1094
@ SkipForDialect (dialectClass = SybaseDialect .class , matchSubTypes = true )
1095
1095
@ SkipForDialect (dialectClass = AltibaseDialect .class , reason = "Altibase does not support offset of datetime" )
1096
+ @ SkipForDialect (dialectClass = InformixDialect .class , reason = "Informix does not support offset datetime" )
1096
1097
public void testCastToOffsetDatetime (SessionFactoryScope scope ) {
1097
1098
scope .inTransaction ( session -> {
1098
1099
session .createQuery ("select cast(datetime 1911-10-09 12:13:14-02:00 as String)" , String .class ).getSingleResult ();
@@ -1490,8 +1491,6 @@ public void testIntervalAddExpressions(SessionFactoryScope scope) {
1490
1491
.list ();
1491
1492
session .createQuery ("select e.theTime + 30 second from EntityOfBasics e" , Date .class )
1492
1493
.list ();
1493
- session .createQuery ("select e.theTime + 300000000 nanosecond from EntityOfBasics e" , Date .class )
1494
- .list ();
1495
1494
1496
1495
session .createQuery ("select e.theTimestamp + 1 year from EntityOfBasics e" , Date .class )
1497
1496
.list ();
@@ -1511,6 +1510,18 @@ public void testIntervalAddExpressions(SessionFactoryScope scope) {
1511
1510
);
1512
1511
}
1513
1512
1513
+ @ Test
1514
+ @ SkipForDialect (dialectClass = InformixDialect .class ,
1515
+ reason = "Adding nanoseconds to a time is weird anyway" )
1516
+ public void testAddNanosecondsToTime (SessionFactoryScope scope ) {
1517
+ scope .inTransaction (
1518
+ session -> {
1519
+ session .createQuery ("select e.theTime + 300000000 nanosecond from EntityOfBasics e" , Date .class )
1520
+ .list ();
1521
+ }
1522
+ );
1523
+ }
1524
+
1514
1525
@ Test
1515
1526
public void testIntervalSubExpressions (SessionFactoryScope scope ) {
1516
1527
scope .inTransaction (
@@ -2067,7 +2078,10 @@ public void testMoreIntervalDiffExpressions(SessionFactoryScope scope) {
2067
2078
2068
2079
2069
2080
@ Test
2070
- @ SkipForDialect (dialectClass = CockroachDialect .class , reason = "unsupported binary operator: <date> - <timestamp(6)>" )
2081
+ @ SkipForDialect (dialectClass = CockroachDialect .class ,
2082
+ reason = "unsupported binary operator: <date> - <timestamp(6)>" )
2083
+ @ SkipForDialect (dialectClass = InformixDialect .class ,
2084
+ reason = "Intervals or datetimes are incompatible for the operation" )
2071
2085
public void testIntervalDiffExpressionsDifferentTypes (SessionFactoryScope scope ) {
2072
2086
scope .inTransaction (
2073
2087
session -> {
0 commit comments