db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d..@apache.org
Subject svn commit: r552079 - /db/derby/code/trunk/java/engine/org/apache/derby/impl/sql/compile/UnaryArithmeticOperatorNode.java
Date Sat, 30 Jun 2007 02:35:26 GMT
Author: djd
Date: Fri Jun 29 19:35:26 2007
New Revision: 552079

URL: http://svn.apache.org/viewvc?view=rev&rev=552079
Log:
DERBY-2809 (cleanup) getParameterNode() should be based upon its operand being a parameter
not requiresTypeFromContext as logically they are different concepts (but closely related).

Modified:
    db/derby/code/trunk/java/engine/org/apache/derby/impl/sql/compile/UnaryArithmeticOperatorNode.java

Modified: db/derby/code/trunk/java/engine/org/apache/derby/impl/sql/compile/UnaryArithmeticOperatorNode.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/engine/org/apache/derby/impl/sql/compile/UnaryArithmeticOperatorNode.java?view=diff&rev=552079&r1=552078&r2=552079
==============================================================================
--- db/derby/code/trunk/java/engine/org/apache/derby/impl/sql/compile/UnaryArithmeticOperatorNode.java
(original)
+++ db/derby/code/trunk/java/engine/org/apache/derby/impl/sql/compile/UnaryArithmeticOperatorNode.java
Fri Jun 29 19:35:26 2007
@@ -103,7 +103,9 @@
      */
     public boolean isParameterNode()
     {
-        return requiresTypeFromContext();
+        if (operatorType == UNARY_PLUS || operatorType == UNARY_MINUS)
+            return operand.isParameterNode(); 
+        return false;
     }
 
 	/**



Mime
View raw message