Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 55630 invoked from network); 29 Jul 2006 00:09:41 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 29 Jul 2006 00:09:41 -0000 Received: (qmail 2009 invoked by uid 500); 29 Jul 2006 00:09:41 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 1795 invoked by uid 500); 29 Jul 2006 00:09:40 -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 1786 invoked by uid 99); 29 Jul 2006 00:09:40 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 28 Jul 2006 17:09:40 -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; Fri, 28 Jul 2006 17:09:40 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id C180841000B for ; Sat, 29 Jul 2006 00:07:14 +0000 (GMT) Message-ID: <16818001.1154131634790.JavaMail.jira@brutus> Date: Fri, 28 Jul 2006 17:07:14 -0700 (PDT) From: "Kathey Marsden (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Updated: (DERBY-1500) PreparedStatement#setObject(int parameterIndex, Object x) throws SQL Exception when binding Short value in embedded mode In-Reply-To: <20190969.1152645389824.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-1500?page=all ] Kathey Marsden updated DERBY-1500: ---------------------------------- Urgency: Normal This one really has to be fixed in a feature release and better sooner than later since it may affect existing applications. I'd call this Normal + > PreparedStatement#setObject(int parameterIndex, Object x) throws SQL Exception when binding Short value in embedded mode > ------------------------------------------------------------------------------------------------------------------------ > > Key: DERBY-1500 > URL: http://issues.apache.org/jira/browse/DERBY-1500 > Project: Derby > Issue Type: Bug > Components: JDBC > Affects Versions: 10.1.1.0, 10.1.3.1 > Environment: WindowsXP > Reporter: Markus Fuchs > Attachments: ShortTest.java > > > When trying to insert a row into the table > SHORT_TEST( ID int, SHORT_VAL smallint) > an exception is thrown, if the object value given to PreparedStatement#setObject(int parameterIndex, Object x) is of type Short. The exception thrown is: > --- SQLException --- > SQLState: 22005 > Message: An attempt was made to get a data value of type 'SMALLINT' from a data value of type 'java.lang.Short'. > ErrorCode: 20000 > SQL Exception: An attempt was made to get a data value of type 'SMALLINT' from a data value of type 'java.lang.Short'. > at org.apache.derby.impl.jdbc.Util.newEmbedSQLException(Unknown Source) > at org.apache.derby.impl.jdbc.Util.newEmbedSQLException(Unknown Source) > at org.apache.derby.impl.jdbc.Util.generateCsSQLException(Unknown Source) > at org.apache.derby.impl.jdbc.EmbedConnection.newSQLException(Unknown Source) > at org.apache.derby.impl.jdbc.ConnectionChild.newSQLException(Unknown Source) > at org.apache.derby.impl.jdbc.EmbedPreparedStatement.dataTypeConversion(Unknown Source) > at org.apache.derby.impl.jdbc.EmbedPreparedStatement.setObject(Unknown Source) > Tested on Derby 10.1.1.0 and 10.1.3.1. The same test runs fine in network mode. -- 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