Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 64880 invoked from network); 5 Sep 2006 05:21:00 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 5 Sep 2006 05:21:00 -0000 Received: (qmail 86369 invoked by uid 500); 5 Sep 2006 05:20:59 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 86329 invoked by uid 500); 5 Sep 2006 05:20:59 -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 86320 invoked by uid 99); 5 Sep 2006 05:20:59 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 Sep 2006 22:20:59 -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; Mon, 04 Sep 2006 22:20:57 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id E4C7B71431C for ; Tue, 5 Sep 2006 05:17:23 +0000 (GMT) Message-ID: <19871850.1157433443934.JavaMail.jira@brutus> Date: Mon, 4 Sep 2006 22:17:23 -0700 (PDT) From: "Knut Anders Hatlen (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Commented: (DERBY-1610) Resolve difference of type compatibility between Embedded and NetworkServer/NetworkDriver In-Reply-To: <19866578.1154244193912.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 X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/DERBY-1610?page=comments#action_12432568 ] Knut Anders Hatlen commented on DERBY-1610: ------------------------------------------- LANG_DATA_TYPE_GET_MISMATCH is not the only exception with SQLState 22005. From SQLState.java: String LANG_DATA_TYPE_GET_MISMATCH = "22005"; // same 22005 error String UNSUPPORTED_ENCODING = "22005.S.1"; String CHARACTER_CONVERTER_NOT_AVAILABLE = "22005.S.2"; String CANT_CONVERT_UNICODE_TO_EBCDIC = "22005.S.3"; String NET_UNRECOGNIZED_JDBC_TYPE = "22005.S.4"; String NET_INVALID_JDBC_TYPE_FOR_PARAM = "22005.S.5"; String UNRECOGNIZED_JAVA_SQL_TYPE = "22005.S.6"; ".S.X" is only used internally and not part of the SQL state, so all of these have SQL state 22005. EmbedPreparedStatement.setNull() calls EmbedPreparedStatement.dataTypeConversion() to generate a data conversion exception. In fact, dataTypeConversion() uses SQLState.LANG_DATA_TYPE_GET_MISMATCH. This means the error message is inaccurate for the setters (An attempt was made to get a data value of type ''{0}'' from a data value of type ''{1}''.), but the SQL state is correct. > Resolve difference of type compatibility between Embedded and NetworkServer/NetworkDriver > ----------------------------------------------------------------------------------------- > > Key: DERBY-1610 > URL: http://issues.apache.org/jira/browse/DERBY-1610 > Project: Derby > Issue Type: Bug > Components: Network Server, Network Client > Reporter: Tomohito Nakayama > Assigned To: Tomohito Nakayama > Attachments: DERBY-1610.diff, DERBY-1610_2.diff, parameterMapping.diff, parameterMapping.diff, parameterMapping.diff.betweenEmbedded_and_NetworkServerNetworkClient, TestNullChar.java > > > There exists difference of type compatibility between Embedded and NetworkServer/NetworkClient. > This issue tries to resolve it. -- 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