Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 45978 invoked from network); 12 Jul 2006 22:57:31 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 12 Jul 2006 22:57:31 -0000 Received: (qmail 75895 invoked by uid 500); 12 Jul 2006 22:57:30 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 75868 invoked by uid 500); 12 Jul 2006 22:57:30 -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 75859 invoked by uid 99); 12 Jul 2006 22:57:30 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 12 Jul 2006 15:57:30 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [209.237.227.198] (HELO brutus.apache.org) (209.237.227.198) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 12 Jul 2006 15:57:29 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id A0F454104FD for ; Wed, 12 Jul 2006 22:55:30 +0000 (GMT) Message-ID: <8181750.1152744930656.JavaMail.jira@brutus> Date: Wed, 12 Jul 2006 22:55:30 +0000 (GMT+00:00) From: "Satheesh Bandaram (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Commented: (DERBY-533) Re-enable national character datatypes In-Reply-To: <1567621242.1124838788351.JavaMail.jira@ajax.apache.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/DERBY-533?page=comments#action_12420746 ] Satheesh Bandaram commented on DERBY-533: ----------------------------------------- I earlier had some interest in enabling national characters for 10.2, but after dates for 10.2 became clearer, I decided it wouldn't be feasible to research and implement this functionality in the remaining time. I will add a comment to JIRA entry stating this. I also don't have itch to look into this issue for 10.3, though I think this is very useful functionality. > Re-enable national character datatypes > -------------------------------------- > > Key: DERBY-533 > URL: http://issues.apache.org/jira/browse/DERBY-533 > Project: Derby > Type: New Feature > Components: SQL > Versions: 10.1.1.0 > Reporter: Rick Hillegas > > SQL 2003 coyly defines national character types as "implementation defined". Accordingly, there is considerable variability in how these datatypes behave. Oracle and MySQL use these datatypes to store unicode strings. This would not distinguish national from non-national character types in Derby since Derby stores all strings as unicode sequences. > The national character datatypes (NCHAR, NVARCHAR, NCLOB and their synonymns) used to exist in Cloudscape but were disabled in Derby. The disabling comment in the grammar says "need to re-enable according to SQL standard". Does this mean that the types were removed because they chafed against SQL 2003? If so, what are their defects? > ------------------------------------------------------------------ > Cloudscape 3.5 provided the following support for national character types: > - NCHAR and NVARCHAR were legal datatypes. > - Ordering operations on these datatypes was determined by the collating sequence associated with the locale of the database. > - The locale was a DATABASE-wide property which could not be altered. > - Ordering on non-national character datatypes was lexicographic, that is, character by character. > ------------------------------------------------------------------ > Oracle 9i provides the following support for national character types: > - NCHAR, NVARCHAR2, and NCLOB datatypes are used to store unicode strings. > - Sort order can be overridden per SESSION or even per QUERY, which means that these overridden sort orders are not supported by indexes. > ------------------------------------------------------------------ > DB2 does not appear to support national character types. Nor does its DRDA data interchange protocol. > ------------------------------------------------------------------ > MySQL provides the following support for national character types: > - National Char and National Varchar datatypes are used to hold unicode strings. I cannot find a national CLOB type. > - The character set and sort order can be changed at SERVER-wide, TABLE-wide, or COLUMN-specific levels. > ------------------------------------------------------------------ > If we removed the disabling logic in Derby, I believe that the following would happen: > - We would get NCHAR, NVARCHAR, and NCLOB datatypes. > - These would sort according to the locale that was bound to the database when it was created. > - We would have to build DRDA transport support for these types. > The difference between national and non-national datatypes would be their sort order. > I am keenly interested in understanding what defects (other than DRDA support) should be addressed in the disabled implementation. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira