From 2184a39dcf3f59ecf5e6f37da5697c242e091cf1 Mon Sep 17 00:00:00 2001 From: Christian Beikov Date: Tue, 15 Mar 2022 13:29:30 +0100 Subject: [PATCH] Temporarily disable a test for Oracle due to a bug in BasicFormatterImpl --- .../org/hibernate/orm/test/query/hql/set/SetOperationTest.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hibernate-core/src/test/java/org/hibernate/orm/test/query/hql/set/SetOperationTest.java b/hibernate-core/src/test/java/org/hibernate/orm/test/query/hql/set/SetOperationTest.java index 32c2a88ddd..61af258a16 100644 --- a/hibernate-core/src/test/java/org/hibernate/orm/test/query/hql/set/SetOperationTest.java +++ b/hibernate-core/src/test/java/org/hibernate/orm/test/query/hql/set/SetOperationTest.java @@ -8,6 +8,7 @@ package org.hibernate.orm.test.query.hql.set; import java.util.List; +import org.hibernate.dialect.OracleDialect; import org.hibernate.query.SemanticException; import org.hibernate.testing.TestForIssue; @@ -20,6 +21,7 @@ import org.hibernate.testing.orm.junit.RequiresDialectFeature; import org.hibernate.testing.orm.junit.ServiceRegistry; import org.hibernate.testing.orm.junit.SessionFactory; import org.hibernate.testing.orm.junit.SessionFactoryScope; +import org.hibernate.testing.orm.junit.SkipForDialect; import org.junit.jupiter.api.AfterEach; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.BeforeEach; @@ -240,6 +242,7 @@ public class SetOperationTest { @Test @RequiresDialectFeature(feature = DialectFeatureChecks.SupportsUnion.class) @RequiresDialectFeature(feature = DialectFeatureChecks.SupportsOrderByInSubquery.class) + @SkipForDialect(dialectClass = OracleDialect.class, reason = "Bug in BasicFormatterImpl causes exception during formatting of the SQL string") public void testAlternatingSetOperator(SessionFactoryScope scope) { scope.inSession( session -> {