Skip to content

Commit 8c8eaf8

Browse files
committed
may SubqueryOperatorsTest pass on Informix
1 parent b488141 commit 8c8eaf8

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

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

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
import java.util.Calendar;
88
import java.util.List;
99

10+
import org.hibernate.community.dialect.InformixDialect;
1011
import org.hibernate.dialect.SybaseASEDialect;
1112

1213
import org.hibernate.testing.orm.domain.gambit.SimpleEntity;
@@ -54,6 +55,7 @@ public void testAny(SessionFactoryScope scope) {
5455

5556
@Test @SuppressWarnings("deprecation")
5657
@SkipForDialect(dialectClass = SybaseASEDialect.class, reason = "Sybase ASE does not allow a subquery in the order by clause, but we could move it to the select clause and refer to it by position", matchSubTypes = true)
58+
@SkipForDialect(dialectClass = InformixDialect.class, reason = "A syntax error has occurred")
5759
public void testSubqueryInVariousClauses(SessionFactoryScope scope) {
5860
scope.inTransaction(
5961
session -> {
@@ -105,8 +107,8 @@ public void setUp(SessionFactoryScope scope) {
105107
1,
106108
Calendar.getInstance().getTime(),
107109
null,
108-
Integer.MAX_VALUE,
109-
Long.MAX_VALUE,
110+
Integer.MAX_VALUE-1,
111+
Long.MAX_VALUE-1,
110112
"aaa"
111113
);
112114
session.persist( entity );
@@ -115,8 +117,8 @@ public void setUp(SessionFactoryScope scope) {
115117
2,
116118
Calendar.getInstance().getTime(),
117119
null,
118-
Integer.MIN_VALUE,
119-
Long.MAX_VALUE,
120+
Integer.MIN_VALUE+1,
121+
Long.MAX_VALUE-1,
120122
"zzz"
121123
);
122124
session.persist( second_entity );

0 commit comments

Comments
 (0)