Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 47850 invoked from network); 25 Sep 2006 07:10:38 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 25 Sep 2006 07:10:38 -0000 Received: (qmail 79381 invoked by uid 500); 25 Sep 2006 07:10:37 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 79353 invoked by uid 500); 25 Sep 2006 07:10:37 -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 79344 invoked by uid 99); 25 Sep 2006 07:10:37 -0000 Received: from idunn.apache.osuosl.org (HELO idunn.apache.osuosl.org) (140.211.166.84) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 25 Sep 2006 00:10:37 -0700 X-ASF-Spam-Status: No, hits=0.0 required=5.0 tests= Received: from [209.237.227.198] ([209.237.227.198:51594] helo=brutus.apache.org) by idunn.apache.osuosl.org (ecelerity 2.1.1.8 r(12930)) with ESMTP id 61/6B-13750-CE087154 for ; Mon, 25 Sep 2006 00:10:36 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 26E3D7142A1 for ; Mon, 25 Sep 2006 07:06:51 +0000 (GMT) Message-ID: <31225316.1159168011156.JavaMail.jira@brutus> Date: Mon, 25 Sep 2006 00:06:51 -0700 (PDT) From: "Bernt M. Johnsen (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Commented: (DERBY-728) Unable to create databases whose name containg Chinese characters through the client driver In-Reply-To: <1823277866.1132849316146.JavaMail.jira@ajax.apache.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/DERBY-728?page=comments#action_12437472 ] Bernt M. Johnsen commented on DERBY-728: ---------------------------------------- This is not related to Derby-708. This works in the embedded driver, but the path is encoded in EBCDIC (default DRDA encoding) between network client and server, and thus a character set equivalent to ISO-8859-1 is supported. This does *not* include chinese characters. > Unable to create databases whose name containg Chinese characters through the client driver > ------------------------------------------------------------------------------------------- > > Key: DERBY-728 > URL: http://issues.apache.org/jira/browse/DERBY-728 > Project: Derby > Issue Type: Bug > Components: Network Client > Affects Versions: 10.1.2.1 > Environment: Debian unstable, LInux 2.6.14.2, libc 2.3.5-6 > Reporter: Andrei Badea > > Trying to create a database with the following URL (note the Chinese character in the database name): > jdbc:derby://localhost:1527/\u4e10;create=true > throws the following exception: > -----%<----- > Exception in thread "main" org.apache.derby.client.am.SqlException: Unicode string can't convert to Ebcdic string > at org.apache.derby.client.net.EbcdicCcsidManager.convertFromUCS2(Unknown Source) > at org.apache.derby.client.net.Request.writeScalarPaddedString(Unknown Source) > at org.apache.derby.client.net.NetConnectionRequest.buildRDBNAM(Unknown Source) > at org.apache.derby.client.net.NetConnectionRequest.buildACCSEC(Unknown Source) > at org.apache.derby.client.net.NetConnectionRequest.writeAccessSecurity(Unknown Source) > at org.apache.derby.client.net.NetConnection.writeServerAttributesAndKeyExchange(Unknown Source) > at org.apache.derby.client.net.NetConnection.flowServerAttributesAndKeyExchange(Unknown Source) > at org.apache.derby.client.net.NetConnection.flowUSRIDONLconnect(Unknown Source) > at org.apache.derby.client.net.NetConnection.flowConnect(Unknown Source) > at org.apache.derby.client.net.NetConnection.(Unknown Source) > at org.apache.derby.jdbc.ClientDriver.connect(Unknown Source) > at java.sql.DriverManager.getConnection(DriverManager.java:525) > at java.sql.DriverManager.getConnection(DriverManager.java:193) > at jdbctest.Main.main(Main.java:33) > -----%<----- > It's possible, however, to create databases using the embedded driver, using an URL like: > jdbc:derby:\u4e10;create=true > Tested with both 10.1.1.0 and 10.1.2.1 with the same result. > Complete code to reproduce the bug: > -----%<----- > public static void main(String[] args) throws Exception { > Class.forName("org.apache.derby.jdbc.ClientDriver"); > Connection conn = DriverManager.getConnection("jdbc:derby://localhost:1527/\u4e10;create=true"); > } > -----%<----- -- 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