Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 86188 invoked from network); 12 Jul 2006 12:25:31 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 12 Jul 2006 12:25:31 -0000 Received: (qmail 27172 invoked by uid 500); 12 Jul 2006 12:25:29 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 27136 invoked by uid 500); 12 Jul 2006 12:25:29 -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 27126 invoked by uid 99); 12 Jul 2006 12:25:29 -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 05:25:29 -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 05:25:28 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id CD2B74104D6 for ; Wed, 12 Jul 2006 12:23:30 +0000 (GMT) Message-ID: <2862030.1152707010837.JavaMail.jira@brutus> Date: Wed, 12 Jul 2006 12:23:30 +0000 (GMT+00:00) From: "Knut Anders Hatlen (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Closed: (DERBY-1476) PreparedStatement.setNull(int,int) should throw SQLFeatureNotSupportedException for unsupported types In-Reply-To: <16690911.1152087269945.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-1476?page=all ] Knut Anders Hatlen closed DERBY-1476: ------------------------------------- Resolution: Fixed Derby Info: (was: [Patch Available]) Committed revision 421255. > PreparedStatement.setNull(int,int) should throw SQLFeatureNotSupportedException for unsupported types > ----------------------------------------------------------------------------------------------------- > > Key: DERBY-1476 > URL: http://issues.apache.org/jira/browse/DERBY-1476 > Project: Derby > Type: Bug > Components: JDBC > Versions: 10.2.0.0 > Environment: JDBC 4.0 > Reporter: Knut Anders Hatlen > Assignee: Knut Anders Hatlen > Priority: Minor > Fix For: 10.2.0.0 > Attachments: derby-1476-v1.diff, derby-1476-v1.stat > > The javadoc for PreparedStatement.setNull(int, int) says: > http://download.java.net/jdk6/docs/api/java/sql/PreparedStatement.html#setNull(int,%20int) > Throws: > ... > SQLFeatureNotSupportedException - if sqlType is a ARRAY, BLOB, CLOB, DATALINK, JAVA_OBJECT, NCHAR, NCLOB, NVARCHAR, LONGNVARCHAR, REF, ROWID, SQLXML or STRUCT data type and the JDBC driver does not support this data type > Since Derby doesn't support ARRAY, DATALINK, NCHAR, NCLOB, NVARCHAR, LONGNVARCHAR, REF, ROWID, SQLXML or STRUCT the method should throw SQLFeatureNotSupportedException if used with any of these types. Currently, a general type conversion exception is thrown. With the client driver, no exception is thrown when using this method with the unsupported types. -- 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