Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 61888 invoked from network); 1 Dec 2008 21:50:35 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 1 Dec 2008 21:50:35 -0000 Received: (qmail 37694 invoked by uid 500); 1 Dec 2008 21:50:46 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 37675 invoked by uid 500); 1 Dec 2008 21:50:46 -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 37664 invoked by uid 99); 1 Dec 2008 21:50:46 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Dec 2008 13:50:46 -0800 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Dec 2008 21:49:27 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 5E94D234C2A0 for ; Mon, 1 Dec 2008 13:49:44 -0800 (PST) Message-ID: <1230779952.1228168184386.JavaMail.jira@brutus> Date: Mon, 1 Dec 2008 13:49:44 -0800 (PST) From: "Kathey Marsden (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-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/DERBY-728?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12652169#action_12652169 ] Kathey Marsden commented on DERBY-728: -------------------------------------- I did a quick prototype of Network server/client using a UTF8CcsidManager and was able to connect to the chinese database, but I don't see how we could implement this change and maintain compatibility with earlier versions. All of the exchange of server attributes is done in the CCSID manager encoding so we couldn't negotiate which CcsidManager to use. Are we just stuck until version 11 or does someone have an idea how to manage this? > Unable to create databases whose name containg Chinese characters through the client driver > ------------------------------------------------------------------------------------------- > > Key: DERBY-728 > URL: https://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. - You can reply to this email to add a comment to the issue online.