Skip to content

Commit 663ee87

Browse files
committed
skip tests on Informix
1 parent 4e4212b commit 663ee87

File tree

7 files changed

+24
-3
lines changed

7 files changed

+24
-3
lines changed

hibernate-core/src/test/java/org/hibernate/orm/test/mapping/basic/JsonMappingTests.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
import org.hibernate.cfg.AvailableSettings;
1616
import org.hibernate.community.dialect.AltibaseDialect;
1717
import org.hibernate.community.dialect.DerbyDialect;
18+
import org.hibernate.community.dialect.InformixDialect;
1819
import org.hibernate.dialect.HANADialect;
1920
import org.hibernate.dialect.OracleDialect;
2021
import org.hibernate.dialect.SybaseDialect;
@@ -197,6 +198,8 @@ public void verifyDirtyChecking(SessionFactoryScope scope) {
197198
reason = "Oracle doesn't support comparing JSON with the = operator")
198199
@SkipForDialect(dialectClass = AltibaseDialect.class,
199200
reason = "Altibase doesn't support comparing CLOBs with the = operator")
201+
@SkipForDialect(dialectClass = InformixDialect.class,
202+
reason = "Blobs are not allowed in this expression")
200203
public void verifyComparisonWorks(SessionFactoryScope scope) {
201204
scope.inTransaction(
202205
(session) -> {

hibernate-core/src/test/java/org/hibernate/orm/test/mapping/basic/XmlMappingTests.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
import org.hibernate.annotations.JdbcTypeCode;
1111
import org.hibernate.cfg.AvailableSettings;
1212
import org.hibernate.community.dialect.AltibaseDialect;
13+
import org.hibernate.community.dialect.InformixDialect;
1314
import org.hibernate.dialect.HANADialect;
1415
import org.hibernate.community.dialect.DerbyDialect;
1516
import org.hibernate.dialect.OracleDialect;
@@ -136,6 +137,7 @@ public void verifyReadWorks(SessionFactoryScope scope) {
136137
@SkipForDialect(dialectClass = SybaseDialect.class, matchSubTypes = true, reason = "Sybase doesn't support comparing LOBs with the = operator")
137138
@SkipForDialect(dialectClass = OracleDialect.class, matchSubTypes = true, reason = "Oracle doesn't support comparing JSON with the = operator")
138139
@SkipForDialect(dialectClass = AltibaseDialect.class, reason = "Altibase doesn't support comparing CLOBs with the = operator")
140+
@SkipForDialect(dialectClass = InformixDialect.class, reason = "Blobs are not allowed in this expression")
139141
public void verifyComparisonWorks(SessionFactoryScope scope) {
140142
scope.inTransaction(
141143
(session) -> {

hibernate-core/src/test/java/org/hibernate/orm/test/query/CteTests.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
import java.util.List;
99
import java.util.function.Consumer;
1010

11+
import org.hibernate.community.dialect.InformixDialect;
1112
import org.hibernate.dialect.SybaseASEDialect;
1213
import org.hibernate.community.dialect.TiDBDialect;
1314
import org.hibernate.query.Query;
@@ -130,6 +131,8 @@ public void testBasicJoined(SessionFactoryScope scope) {
130131
}
131132

132133
@Test
134+
@SkipForDialect(dialectClass = InformixDialect.class,
135+
reason = "Apparently nested CTEs are not supported")
133136
public void testNested(SessionFactoryScope scope) {
134137
scope.inTransaction(
135138
session -> {

hibernate-core/src/test/java/org/hibernate/orm/test/timestamp/JdbcTimeCustomTimeZoneTest.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
import org.hibernate.boot.registry.StandardServiceRegistryBuilder;
1919
import org.hibernate.cfg.AvailableSettings;
20-
import org.hibernate.dialect.MySQLDialect;
20+
import org.hibernate.community.dialect.InformixDialect;
2121
import org.hibernate.engine.jdbc.connections.spi.ConnectionProvider;
2222

2323
import org.hibernate.testing.orm.jdbc.PreparedStatementSpyConnectionProvider;
@@ -34,7 +34,8 @@
3434
/**
3535
* @author Vlad Mihalcea
3636
*/
37-
@SkipForDialect(dialectClass = MySQLDialect.class, matchSubTypes = true)
37+
@SkipForDialect(dialectClass = InformixDialect.class,
38+
reason = "Informix JDBC driver seems to misinterpret the JDBC time zone")
3839
public class JdbcTimeCustomTimeZoneTest
3940
extends BaseSessionFactoryFunctionalTest {
4041

hibernate-core/src/test/java/org/hibernate/orm/test/timezones/UTCNormalizedInstantTest.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,10 @@
1010
import java.util.TimeZone;
1111

1212
import org.hibernate.annotations.JdbcTypeCode;
13+
import org.hibernate.community.dialect.InformixDialect;
1314
import org.hibernate.dialect.Dialect;
1415
import org.hibernate.dialect.SybaseDialect;
16+
import org.hibernate.testing.orm.junit.SkipForDialect;
1517
import org.hibernate.type.descriptor.DateTimeUtils;
1618

1719
import org.hibernate.testing.jdbc.SharedDriverManagerConnectionProviderImpl;
@@ -64,6 +66,8 @@ else if ( dialect.getDefaultTimestampPrecision() == 6 ) {
6466
});
6567
}
6668

69+
@SkipForDialect(dialectClass = InformixDialect.class,
70+
reason = "Informix driver misbehaves")
6771
@Test void testWithSystemTimeZone(SessionFactoryScope scope) {
6872
final TimeZone timeZoneBefore = TimeZone.getDefault();
6973
TimeZone.setDefault( TimeZone.getTimeZone( "CET" ) );

hibernate-core/src/test/java/org/hibernate/orm/test/tm/CMTTest.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
import org.hibernate.ScrollableResults;
1212
import org.hibernate.Session;
1313
import org.hibernate.cfg.AvailableSettings;
14+
import org.hibernate.community.dialect.InformixDialect;
1415
import org.hibernate.dialect.CockroachDialect;
1516
import org.hibernate.dialect.SQLServerDialect;
1617
import org.hibernate.engine.spi.SessionFactoryImplementor;
@@ -279,7 +280,10 @@ public void testConcurrentCachedQueries(SessionFactoryScope scope) throws Except
279280
feature = DialectFeatureChecks.DoesReadCommittedCauseWritersToBlockReadersCheck.class, reverse = true,
280281
comment = "write locks block readers"
281282
)
282-
@SkipForDialect(dialectClass = CockroachDialect.class, reason = "Cockroach uses SERIALIZABLE by default and seems to fail reading a row that is exclusively locked by a different TX")
283+
@SkipForDialect(dialectClass = CockroachDialect.class,
284+
reason = "Cockroach uses SERIALIZABLE by default and seems to fail reading a row that is exclusively locked by a different TX")
285+
@SkipForDialect(dialectClass = InformixDialect.class,
286+
reason = "Informix simply fails to obtain the lock with 'Could not do a physical-order read to fetch next row'")
283287
public void testConcurrentCachedDirtyQueries(SessionFactoryScope scope) throws Exception {
284288
final TransactionManager transactionManager = TestingJtaPlatformImpl.INSTANCE.getTransactionManager();
285289
try {

hibernate-core/src/test/java/org/hibernate/orm/test/type/contributor/LiteralRenderingTest.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
import java.util.TimeZone;
2626
import java.util.UUID;
2727

28+
import org.hibernate.community.dialect.InformixDialect;
2829
import org.hibernate.query.criteria.HibernateCriteriaBuilder;
2930
import org.hibernate.query.criteria.JpaCriteriaQuery;
3031

@@ -35,13 +36,16 @@
3536
import org.hibernate.testing.orm.junit.ServiceRegistry;
3637
import org.hibernate.testing.orm.junit.SessionFactory;
3738
import org.hibernate.testing.orm.junit.SessionFactoryScope;
39+
import org.hibernate.testing.orm.junit.SkipForDialect;
3840
import org.junit.jupiter.params.ParameterizedTest;
3941
import org.junit.jupiter.params.provider.MethodSource;
4042

4143
@ServiceRegistry
4244
@DomainModel( standardModels = StandardDomainModel.GAMBIT )
4345
@SessionFactory
4446
@JiraKey(value = "HHH-15590")
47+
@SkipForDialect(dialectClass = InformixDialect.class,
48+
reason = "Informix does not support binary literals")
4549
public class LiteralRenderingTest {
4650

4751
public static List<Object> literalValues() throws Exception {

0 commit comments

Comments
 (0)