You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by do...@apache.org on 2009/11/26 02:31:38 UTC

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

Author: doogie
Date: Thu Nov 26 01:31:38 2009
New Revision: 884360

URL: http://svn.apache.org/viewvc?rev=884360&view=rev
Log:
Handle null values during planning of conditions.

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=884360&r1=884359&r2=884360&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 Thu Nov 26 01:31:38 2009
@@ -81,6 +81,8 @@
                 values.add(buildValue(sqlValue, params));
             }
             return values;
+        } else if (value == Value.NULL) {
+            return null;
         } else if (value instanceof ParameterValue) {
             if (params == null) {
                 throw new ParameterizedConditionException();