db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d..@apache.org
Subject svn commit: r553017 - /db/derby/code/branches/10.3/java/engine/org/apache/derby/impl/sql/compile/UnaryArithmeticOperatorNode.java
Date Tue, 03 Jul 2007 23:18:23 GMT
Author: djd
Date: Tue Jul  3 16:18:22 2007
New Revision: 553017

URL: http://svn.apache.org/viewvc?view=rev&rev=553017
Log:
DERBY-2809 Merge of 552079 from trunk.
Ensure UnaryOperatorNode.getParameterNode() correctly determines
its state from its operand's isParameterNode() method.

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

Modified: db/derby/code/branches/10.3/java/engine/org/apache/derby/impl/sql/compile/UnaryArithmeticOperatorNode.java
URL: http://svn.apache.org/viewvc/db/derby/code/branches/10.3/java/engine/org/apache/derby/impl/sql/compile/UnaryArithmeticOperatorNode.java?view=diff&rev=553017&r1=553016&r2=553017
==============================================================================
--- db/derby/code/branches/10.3/java/engine/org/apache/derby/impl/sql/compile/UnaryArithmeticOperatorNode.java
(original)
+++ db/derby/code/branches/10.3/java/engine/org/apache/derby/impl/sql/compile/UnaryArithmeticOperatorNode.java
Tue Jul  3 16:18:22 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