svn commit: r1139886 - /ofbiz/trunk/framework/entity/src/org/ofbiz/entity/sql/EntityPlanner.java

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r1139886 - /ofbiz/trunk/framework/entity/src/org/ofbiz/entity/sql/EntityPlanner.java

doogie-3
Author: doogie
Date: Sun Jun 26 18:11:18 2011
New Revision: 1139886

URL: http://svn.apache.org/viewvc?rev=1139886&view=rev
Log:
FIX: Properly detect if a UNIONED query is being requested.

Modified:
    ofbiz/trunk/framework/entity/src/org/ofbiz/entity/sql/EntityPlanner.java

Modified: ofbiz/trunk/framework/entity/src/org/ofbiz/entity/sql/EntityPlanner.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/entity/src/org/ofbiz/entity/sql/EntityPlanner.java?rev=1139886&r1=1139885&r2=1139886&view=diff
==============================================================================
--- ofbiz/trunk/framework/entity/src/org/ofbiz/entity/sql/EntityPlanner.java (original)
+++ ofbiz/trunk/framework/entity/src/org/ofbiz/entity/sql/EntityPlanner.java Sun Jun 26 18:11:18 2011
@@ -74,7 +74,7 @@ public class EntityPlanner extends Plann
     public EntitySelectPlan planSelect(SQLSelect selectStatement) {
         DynamicViewEntity dve = new DynamicViewEntity();
         Unioned unioned = selectStatement.getUnioned();
-        if (unioned.getOperator() != null || unioned.getNext() != null) {
+        if (unioned != null) {
             throw new IllegalArgumentException("union views not yet supported");
         }
         SelectGroup selectGroup = unioned.getGroup();