From 7a9b8ba19cbb14fdf71ec72d96ea607ed20d971c Mon Sep 17 00:00:00 2001 From: Juraci Krohling Date: Wed, 10 Dec 2008 16:23:10 +0000 Subject: [PATCH] HHH-3637 - makes the test to be evicted if the Dialect is the Sybase one, based on similar eviction code from other tests git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@15678 1b8cb986-b30d-0410-93ca-fae66ebed9b2 --- .../java/org/hibernate/test/filter/DynamicFilterTest.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/testsuite/src/test/java/org/hibernate/test/filter/DynamicFilterTest.java b/testsuite/src/test/java/org/hibernate/test/filter/DynamicFilterTest.java index 50d05a2a24..ed82ce54b0 100644 --- a/testsuite/src/test/java/org/hibernate/test/filter/DynamicFilterTest.java +++ b/testsuite/src/test/java/org/hibernate/test/filter/DynamicFilterTest.java @@ -27,6 +27,7 @@ import org.hibernate.criterion.Restrictions; import org.hibernate.criterion.DetachedCriteria; import org.hibernate.criterion.Property; import org.hibernate.criterion.Subqueries; +import org.hibernate.dialect.SybaseDialect; import org.hibernate.engine.SessionImplementor; import org.hibernate.impl.SessionFactoryImpl; import org.hibernate.junit.functional.FunctionalTestCase; @@ -70,6 +71,10 @@ public class DynamicFilterTest extends FunctionalTestCase { } public void testSqlSyntaxOfFiltersWithUnions() { + // HHH-3637 - Union in where doesn't works for Sybase, need to evict test case + if ( ( getDialect() instanceof SybaseDialect) ) { + return; + } Session session = openSession(); session.enableFilter( "unioned" ); session.createQuery( "from Category" ).list();