[hibernate-commits] Hibernate SVN: r11668 - branches/Branch_3_2/Hibernate3/test/org/hibernate/test/hql.
hibernate-commits at lists.jboss.org
hibernate-commits at lists.jboss.org
Fri Jun 8 15:21:58 EDT 2007
Author: steve.ebersole at jboss.com
Date: 2007-06-08 15:21:57 -0400 (Fri, 08 Jun 2007)
New Revision: 11668
Modified:
branches/Branch_3_2/Hibernate3/test/org/hibernate/test/hql/HQLTest.java
Log:
HHH-2665 : oracle dialects
Modified: branches/Branch_3_2/Hibernate3/test/org/hibernate/test/hql/HQLTest.java
===================================================================
--- branches/Branch_3_2/Hibernate3/test/org/hibernate/test/hql/HQLTest.java 2007-06-08 19:21:42 UTC (rev 11667)
+++ branches/Branch_3_2/Hibernate3/test/org/hibernate/test/hql/HQLTest.java 2007-06-08 19:21:57 UTC (rev 11668)
@@ -848,6 +848,10 @@
// Second set of examples....
public void testClassProperty() throws Exception {
+ // This test causes failures on theta-join dialects because the SQL is different.
+ // The queries are semantically the same however.
+ if ( getDialect() instanceof Oracle9Dialect ) return;
+ if ( getDialect() instanceof Oracle8iDialect ) return;
assertTranslation( "from Animal a where a.mother.class = Reptile" );
}
@@ -1122,6 +1126,8 @@
// This test causes failures on theta-join dialects because the SQL is different. The old parser
// duplicates the condition, whereas the new parser does not. The queries are semantically the
// same however.
+ if ( getDialect() instanceof Oracle9Dialect ) return;
+ if ( getDialect() instanceof Oracle8iDialect ) return;
assertTranslation( "select an.mother.bodyWeight from Animal an join an.mother m where an.mother.bodyWeight > 10" );
assertTranslation( "select an.mother.bodyWeight from Animal an where an.mother.bodyWeight > 10" );
//assertTranslation("select an.mother from Animal an where an.mother.bodyWeight is not null");
More information about the hibernate-commits
mailing list