From 7123491afe8b80094abd0f1b8fcf6965f550d48c Mon Sep 17 00:00:00 2001 From: Strong Liu Date: Mon, 5 Apr 2010 13:24:54 +0000 Subject: [PATCH] HHH-4961 HHH-4970 HHH-4973 skip some tests that ingres does not support this syntax git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@19165 1b8cb986-b30d-0410-93ca-fae66ebed9b2 --- .../hibernate/test/hql/ASTParserLoadingTest.java | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/testsuite/src/test/java/org/hibernate/test/hql/ASTParserLoadingTest.java b/testsuite/src/test/java/org/hibernate/test/hql/ASTParserLoadingTest.java index 2ee48b5005..34e3de3794 100644 --- a/testsuite/src/test/java/org/hibernate/test/hql/ASTParserLoadingTest.java +++ b/testsuite/src/test/java/org/hibernate/test/hql/ASTParserLoadingTest.java @@ -27,6 +27,7 @@ import org.hibernate.cfg.Configuration; import org.hibernate.cfg.Environment; import org.hibernate.dialect.DB2Dialect; import org.hibernate.dialect.HSQLDialect; +import org.hibernate.dialect.IngresDialect; import org.hibernate.dialect.MySQLDialect; import org.hibernate.dialect.Oracle8iDialect; import org.hibernate.dialect.PostgreSQLDialect; @@ -237,6 +238,10 @@ public class ASTParserLoadingTest extends FunctionalTestCase { } public void testPaginationWithPolymorphicQuery() { + if ( getDialect() instanceof IngresDialect ) { + // HHH-4961 Ingres does not support this scoping in 9.3. + return; + } Session s = openSession(); s.beginTransaction(); Human h = new Human(); @@ -704,6 +709,11 @@ public class ASTParserLoadingTest extends FunctionalTestCase { } public void testComponentParameterBinding() { + if ( getDialect() instanceof IngresDialect ) { + // HHH-4970 Subselects are not supported within select target lists + // in Ingres + return; + } // HHH-1774 : parameters are bound incorrectly with component parameters... Session s = openSession(); s.beginTransaction(); @@ -1107,6 +1117,11 @@ public class ASTParserLoadingTest extends FunctionalTestCase { } public void testSelectClauseSubselect() { + if ( getDialect() instanceof IngresDialect ) { + // HHH-4973 Ingres 9.3 does not support sub-selects in the select + // list. + return; + } Session s = openSession(); Transaction t = s.beginTransaction(); Zoo zoo = new Zoo();