[Mulgara-svn] r760 - branches/mgr-61-sparql/src/jar/query/java/org/mulgara/query/filter/arithmetic

pag at mulgara.org pag at mulgara.org
Thu Apr 10 23:12:57 UTC 2008


Author: pag
Date: 2008-04-10 16:12:54 -0700 (Thu, 10 Apr 2008)
New Revision: 760

Modified:
   branches/mgr-61-sparql/src/jar/query/java/org/mulgara/query/filter/arithmetic/BinaryOperation.java
Log:
Set to use selected operation instead of product

Modified: branches/mgr-61-sparql/src/jar/query/java/org/mulgara/query/filter/arithmetic/BinaryOperation.java
===================================================================
--- branches/mgr-61-sparql/src/jar/query/java/org/mulgara/query/filter/arithmetic/BinaryOperation.java	2008-04-10 21:41:08 UTC (rev 759)
+++ branches/mgr-61-sparql/src/jar/query/java/org/mulgara/query/filter/arithmetic/BinaryOperation.java	2008-04-10 23:12:54 UTC (rev 760)
@@ -23,11 +23,10 @@
  *
  * @created Mar 13, 2008
  * @author Paul Gearon
- * @copyright &copy; 2008 <a href="mailto:pgearon at users.sourceforge.net">Paul Gearon</a>
+ * @copyright &copy; 2008 <a href="http://www.topazproject.org/">The Topaz Project</a>
  * @licence <a href="{@docRoot}/../../LICENCE.txt">Open Software License v3.0</a>
  */
-public abstract class BinaryOperation extends 
-AbstractNumericOperation implements NumericExpression {
+public abstract class BinaryOperation extends AbstractNumericOperation implements NumericExpression {
 
   /** The first operand */
   protected NumericExpression lhs;
@@ -60,7 +59,7 @@
     Number right = rhs.getNumber();
     NumberOps op = opMap.get(new ClassPair(left, right));
     if (op == null) throw new AssertionError("Missing entry in operation map");
-    return op.product(left, right);
+    return doOperation(op, left, right);
   }
 
   /**




More information about the Mulgara-svn mailing list