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/12/21 06:49:13 UTC

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

Author: doogie
Date: Mon Dec 21 05:49:13 2009
New Revision: 892696

URL: http://svn.apache.org/viewvc?rev=892696&view=rev
Log:
Fix planning of MathValue.

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=892696&r1=892695&r2=892696&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 Mon Dec 21 05:49:13 2009
@@ -196,10 +196,9 @@
             }
         } else if (value instanceof MathValue) {
             MathValue mv = (MathValue) value;
-            List<ComplexAliasMember> members = FastList.newInstance();
             ComplexAlias complexAlias = new ComplexAlias(mv.getOp());
             for (StaticValue staticValue: mv) {
-                complexAlias.addComplexAliasMember(buildComplexMember(value));
+                complexAlias.addComplexAliasMember(buildComplexMember(staticValue));
             }
             return complexAlias;
         }