Return-Path: Delivered-To: apmail-db-derby-commits-archive@www.apache.org Received: (qmail 24991 invoked from network); 6 Jul 2007 07:04:45 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 6 Jul 2007 07:04:45 -0000 Received: (qmail 40302 invoked by uid 500); 6 Jul 2007 08:38:03 -0000 Delivered-To: apmail-db-derby-commits-archive@db.apache.org Received: (qmail 40277 invoked by uid 500); 6 Jul 2007 08:38:03 -0000 Mailing-List: contact derby-commits-help@db.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: "Derby Development" List-Id: Delivered-To: mailing list derby-commits@db.apache.org Received: (qmail 40266 invoked by uid 99); 6 Jul 2007 08:38:03 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 06 Jul 2007 01:38:03 -0700 X-ASF-Spam-Status: No, hits=-99.5 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO eris.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 06 Jul 2007 01:38:00 -0700 Received: by eris.apache.org (Postfix, from userid 65534) id 2A21A1A981A; Fri, 6 Jul 2007 01:37:40 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit 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 -0000 To: derby-commits@db.apache.org From: mamta@apache.org X-Mailer: svnmailer-1.1.0 Message-Id: <20070706083740.2A21A1A981A@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org 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); }