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 ma...@apache.org on 2007/07/06 10:32:55 UTC
svn commit: r553788 -
/db/derby/code/trunk/java/engine/org/apache/derby/impl/sql/compile/TernaryOperatorNode.java
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);
}