Author: epbernard
Date: 2006-09-25 11:14:10 -0400 (Mon, 25 Sep 2006)
New Revision: 10528
Modified:
branches/Branch_3_2/Hibernate3/src/org/hibernate/hql/ast/tree/SelectClause.java
Log:
HHH-2103 rollback mandatory select in JPA
Modified: branches/Branch_3_2/Hibernate3/src/org/hibernate/hql/ast/tree/SelectClause.java
===================================================================
---
branches/Branch_3_2/Hibernate3/src/org/hibernate/hql/ast/tree/SelectClause.java 2006-09-25
15:13:41 UTC (rev 10527)
+++
branches/Branch_3_2/Hibernate3/src/org/hibernate/hql/ast/tree/SelectClause.java 2006-09-25
15:14:10 UTC (rev 10528)
@@ -256,10 +256,12 @@
if ( prepared ) {
throw new IllegalStateException( "SelectClause was already prepared!" );
}
- if ( getSessionFactoryHelper().isStrictJPAQLComplianceEnabled() &&
!getWalker().isSubQuery() ) {
- // NOTE : the isSubQuery() bit is a temporary hack...
- throw new QuerySyntaxException( "JPA-QL compliance requires select clause"
);
- }
+
+ //Used to be tested by the TCK but the test is no longer here
+// if ( getSessionFactoryHelper().isStrictJPAQLComplianceEnabled() &&
!getWalker().isSubQuery() ) {
+// // NOTE : the isSubQuery() bit is a temporary hack...
+// throw new QuerySyntaxException( "JPA-QL compliance requires select clause"
);
+// }
List fromElements = fromClause.getProjectionList();
ASTAppender appender = new ASTAppender( getASTFactory(), this ); // Get ready to start
adding nodes.
Show replies by date