db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r553788 - /db/derby/code/trunk/java/engine/org/apache/derby/impl/sql/compile/TernaryOperatorNode.java
Date Fri, 06 Jul 2007 08:32:55 GMT
Author: mamta
Date: Fri Jul  6 01:32:54 2007
New Revision: 553788

URL: http://svn.apache.org/viewvc?view=rev&rev=553788
Log:
DERBY-2777

No changes required for SUBSTR because SUBSTR has only one character string operand and hence
if that character string
operand is a parameter, it's context for collation will be the current compilation schema.



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

Modified: db/derby/code/trunk/java/engine/org/apache/derby/impl/sql/compile/TernaryOperatorNode.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/engine/org/apache/derby/impl/sql/compile/TernaryOperatorNode.java?view=diff&rev=553788&r1=553787&r2=553788
==============================================================================
--- db/derby/code/trunk/java/engine/org/apache/derby/impl/sql/compile/TernaryOperatorNode.java
(original)
+++ db/derby/code/trunk/java/engine/org/apache/derby/impl/sql/compile/TernaryOperatorNode.java
Fri Jul  6 01:32:54 2007
@@ -774,7 +774,10 @@
 			*/
 	
 			receiver.setType(getVarcharDescriptor());
-			//collation of ? operand should be same as the compilation schema
+			//collation of ? operand should be same as the compilation schema 
+			//because that is the only context available for us to pick up the
+			//collation. There are no other character operands to SUBSTR method
+			//to pick up the collation from.
 			receiver.setCollationUsingCompilationSchema(
 					StringDataValue.COLLATION_DERIVATION_IMPLICIT);
 		}



Mime
View raw message