svn commit: r881191 - /ofbiz/trunk/framework/entity/src/org/ofbiz/entity/sql/EntityConditionPlanner.java

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

svn commit: r881191 - /ofbiz/trunk/framework/entity/src/org/ofbiz/entity/sql/EntityConditionPlanner.java

doogie-3
Author: doogie
Date: Tue Nov 17 08:29:23 2009
New Revision: 881191

URL: http://svn.apache.org/viewvc?rev=881191&view=rev
Log:
Handle nested alias.fieldName, which happens when nested conditions
exist.

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

Modified: ofbiz/trunk/framework/entity/src/org/ofbiz/entity/sql/EntityConditionPlanner.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/entity/src/org/ofbiz/entity/sql/EntityConditionPlanner.java?rev=881191&r1=881190&r2=881191&view=diff
==============================================================================
--- ofbiz/trunk/framework/entity/src/org/ofbiz/entity/sql/EntityConditionPlanner.java (original)
+++ ofbiz/trunk/framework/entity/src/org/ofbiz/entity/sql/EntityConditionPlanner.java Tue Nov 17 08:29:23 2009
@@ -67,6 +67,9 @@
             return ((NumberValue) value).getNumber();
         } else if (value instanceof StringValue) {
             return ((StringValue) value).getString();
+        } else if (value instanceof FieldValue) {
+            FieldValue fv = (FieldValue) value;
+            return EntityFieldValue.makeFieldValue(fv.getFieldName(), fv.getTableName(), null, null);
         } else if (value instanceof List) {
             List<Object> values = FastList.newInstance();
             for (Object sqlValue: (List) value) {