Author: doogie
Date: Sun Jun 26 18:11:18 2011
New Revision: 1139886
URL:
http://svn.apache.org/viewvc?rev=1139886&view=revLog:
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();