You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-commits@db.apache.org by dj...@apache.org on 2007/07/04 01:18:23 UTC
svn commit: r553017 -
/db/derby/code/branches/10.3/java/engine/org/apache/derby/impl/sql/compile/UnaryArithmeticOperatorNode.java
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;
}
/**