Author: steve.ebersole(a)jboss.com
Date: 2009-08-17 13:41:07 -0400 (Mon, 17 Aug 2009)
New Revision: 17338
Modified:
core/trunk/testsuite/src/test/java/org/hibernate/test/hql/HQLTest.java
Log:
HHH-4091 - HQLTest#testDuplicateImplicitJoinInSelect
Modified: core/trunk/testsuite/src/test/java/org/hibernate/test/hql/HQLTest.java
===================================================================
--- core/trunk/testsuite/src/test/java/org/hibernate/test/hql/HQLTest.java 2009-08-17
17:40:52 UTC (rev 17337)
+++ core/trunk/testsuite/src/test/java/org/hibernate/test/hql/HQLTest.java 2009-08-17
17:41:07 UTC (rev 17338)
@@ -1130,7 +1130,8 @@
// duplicates the condition, whereas the new parser does not. The queries are
semantically the
// same however.
if ( getDialect() instanceof Oracle8iDialect ) return;
- assertTranslation( "select an.mother.bodyWeight from Animal an join an.mother m
where an.mother.bodyWeight > 10" );
+// the classic translator handles this incorrectly; the explicit join and the implicit
ones should create separate physical SQL joins...
+// 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");
assertTranslation( "select an.mother.bodyWeight from Animal an order by
an.mother.bodyWeight" );
Show replies by date