svn commit: r892696 - /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: r892696 - /ofbiz/trunk/framework/entity/src/org/ofbiz/entity/sql/EntityPlanner.java

doogie-3
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;
         }