Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 45672 invoked from network); 22 Jun 2007 19:29:47 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 22 Jun 2007 19:29:47 -0000 Received: (qmail 30585 invoked by uid 500); 22 Jun 2007 19:29:50 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 30561 invoked by uid 500); 22 Jun 2007 19:29:50 -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 30552 invoked by uid 99); 22 Jun 2007 19:29:50 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 22 Jun 2007 12:29:50 -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; Fri, 22 Jun 2007 12:29:46 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id DDBE67141DC for ; Fri, 22 Jun 2007 12:29:25 -0700 (PDT) Message-ID: <29534684.1182540565883.JavaMail.jira@brutus> Date: Fri, 22 Jun 2007 12:29:25 -0700 (PDT) From: "Kathey Marsden (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Commented: (DERBY-2865) With TERRITORY_BASED collation LENGTH function does not return correct number of characters for Norwegian 'aa' In-Reply-To: <31613561.1182539005854.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/DERBY-2865?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12507486 ] Kathey Marsden commented on DERBY-2865: --------------------------------------- For like processing and sorting it is treated as a single character. ij> create table t (vc varchar(30)); 0 rows inserted/updated/deleted ij> insert into t values('aarg'); 1 row inserted/updated/deleted ij> select * from t where vc like '_rg'; VC ------------------------------ aarg ij> insert into t values ('abc'); 1 row inserted/updated/deleted ij> insert into t values ('az'); 1 row inserted/updated/deleted ij> select * from t order by vc; VC ------------------------------ abc az aarg > With TERRITORY_BASED collation LENGTH function does not return correct number of characters for Norwegian 'aa' > -------------------------------------------------------------------------------------------------------------- > > Key: DERBY-2865 > URL: https://issues.apache.org/jira/browse/DERBY-2865 > Project: Derby > Issue Type: Bug > Components: SQL > Affects Versions: 10.3.0.0 > Reporter: Kathey Marsden > Priority: Minor > > For territory=no_NO and collation=TERRITORY_BASED, 'aa' should be a single character but the length function reports it as two characters. > ij> connect 'jdbc:derby:nordb;create=true;territory=no_NO;collation=TERRITORY_BASED'; > ij(CONNECTION1)> create table t (vc varchar(30)); > 0 rows inserted/updated/deleted > ij(CONNECTION1)> insert into t values('aarg'); > 1 row inserted/updated/deleted > ij(CONNECTION1)> select vc, length(vc) from t2; > ERROR 42X05: Table/View 'T2' does not exist. > ij(CONNECTION1)> select vc, length(vc) from t; > VC |2 > ------------------------------------------ > aarg |4 > 1 row selected > SUBSTR and CHAR functions have the same issue > ij> values (SUBSTR('aarg',1,3)); > 1 > ---- > aar > ij> values (CHAR('aarg',3)); > 1 > ---- > aar -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.