Author: steve.ebersole(a)jboss.com
Date: 2007-06-08 15:21:42 -0400 (Fri, 08 Jun 2007)
New Revision: 11667
Modified:
trunk/Hibernate3/code/testsuite/src/test/java/org/hibernate/test/hql/HQLTest.java
Log:
HHH-2665 : oracle dialects
Modified:
trunk/Hibernate3/code/testsuite/src/test/java/org/hibernate/test/hql/HQLTest.java
===================================================================
---
trunk/Hibernate3/code/testsuite/src/test/java/org/hibernate/test/hql/HQLTest.java 2007-06-08
18:58:14 UTC (rev 11666)
+++
trunk/Hibernate3/code/testsuite/src/test/java/org/hibernate/test/hql/HQLTest.java 2007-06-08
19:21:42 UTC (rev 11667)
@@ -846,6 +846,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" );
}
@@ -1120,6 +1124,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");
Show replies by date