db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r553789 - /db/derby/code/branches/10.3/java/engine/org/apache/derby/impl/sql/compile/TernaryOperatorNode.java
Date Fri, 06 Jul 2007 08:37:39 GMT
Author: mamta
Date: Fri Jul  6 01:37:38 2007
New Revision: 553789

URL: http://svn.apache.org/viewvc?view=rev&rev=553789
Log:
Merging change 553788 from main into 10.3.1.1 codeline

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/branches/10.3/java/engine/org/apache/derby/impl/sql/compile/TernaryOperatorNode.java

Modified: db/derby/code/branches/10.3/java/engine/org/apache/derby/impl/sql/compile/TernaryOperatorNode.java
URL: http://svn.apache.org/viewvc/db/derby/code/branches/10.3/java/engine/org/apache/derby/impl/sql/compile/TernaryOperatorNode.java?view=diff&rev=553789&r1=553788&r2=553789
==============================================================================
--- db/derby/code/branches/10.3/java/engine/org/apache/derby/impl/sql/compile/TernaryOperatorNode.java
(original)
+++ db/derby/code/branches/10.3/java/engine/org/apache/derby/impl/sql/compile/TernaryOperatorNode.java
Fri Jul  6 01:37:38 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