Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 10812 invoked from network); 22 May 2007 06:29:37 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 22 May 2007 06:29:37 -0000 Received: (qmail 82097 invoked by uid 500); 22 May 2007 06:29:43 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 81869 invoked by uid 500); 22 May 2007 06:29:42 -0000 Mailing-List: contact derby-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 81860 invoked by uid 99); 22 May 2007 06:29:42 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 21 May 2007 23:29:42 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 21 May 2007 23:29:36 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 1DEF171403C for ; Mon, 21 May 2007 23:29:16 -0700 (PDT) Message-ID: <3134798.1179815356120.JavaMail.jira@brutus> Date: Mon, 21 May 2007 23:29:16 -0700 (PDT) From: "Mamta A. Satoor (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Created: (DERBY-2678) Derby should follow SQL standards when operand(s) in the collation operation have collation derivation of NONE MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Derby should follow SQL standards when operand(s) in the collation operation have collation derivation of NONE -------------------------------------------------------------------------------------------------------------- Key: DERBY-2678 URL: https://issues.apache.org/jira/browse/DERBY-2678 Project: Derby Issue Type: New Feature Components: SQL Affects Versions: 10.3.0.0 Reporter: Mamta A. Satoor The collation methods in Derby should follow the rules defined by SQL spec in Section 9.13 Collation determination Syntax Rules 2 and 3e. According to those rules, 1)at least one operand shall have a declared type collation (that means if the comparison is sysChar1|userChar1 > sysChar2|userChar2, then such a comparison will fail because both sides of > operator have collation derivation of NONE. But if the comparison is sysChar|userChar1 > sysChar2, then it shouldn't fail because although the left hand operand has collation derivation of NONE, the right hand operand has collation derivation of IMPLICIT and hence the comparison is possible). 2)every operand whose collation derivation is IMPLICIT shall have the same declared type collation (that means if the comparison is sysChar1 > userChar1WithTerritoryBasedCollation, then such a comparison will fail because left operand has collation derivation as IMPLICIT and collation type as UCS_BASIC and the right operand has collation derivation IMPLICIT and collation type as TERRITORY_BASED. But if the comparison is sysChar1 > sysChar2, then comparison won't fail because both the operands have same collation derivation and type.) -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.