Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 74863 invoked from network); 8 Sep 2010 16:56:00 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 8 Sep 2010 16:56:00 -0000 Received: (qmail 49016 invoked by uid 500); 8 Sep 2010 16:56:00 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 48934 invoked by uid 500); 8 Sep 2010 16:55: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 48927 invoked by uid 99); 8 Sep 2010 16:55:59 -0000 Received: from Unknown (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Sep 2010 16:55:59 +0000 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.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Sep 2010 16:55:58 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o88Gtag5006391 for ; Wed, 8 Sep 2010 16:55:36 GMT Message-ID: <12223465.79781283964936454.JavaMail.jira@thor> Date: Wed, 8 Sep 2010 12:55:36 -0400 (EDT) From: "Patrick Holthuizen (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Commented: (DERBY-1938) Add support for setObject(, null) In-Reply-To: <15331036.1160087959474.JavaMail.root@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/DERBY-1938?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12907307#action_12907307 ] Patrick Holthuizen commented on DERBY-1938: ------------------------------------------- Another thank you from me too. > Add support for setObject(, null) > -------------------------------------- > > Key: DERBY-1938 > URL: https://issues.apache.org/jira/browse/DERBY-1938 > Project: Derby > Issue Type: Improvement > Components: JDBC > Reporter: Dag H. Wanvik > Assignee: Kristian Waagan > Priority: Minor > Fix For: 10.7.0.0 > > Attachments: derby-1938-1a-reworked_patch.diff, derby-1938-1b-reworked_patch.diff, DERBY-1938.patch > > > Derby presently does not implement support for the method > PreparedStatement.setObject (and similarly for CallableStatement.setObject) > when the supplied value is null, unless a type argument (3rd arg) is also present. > That is, in: > void setObject(int parameterIndex, > Object x) > throws SQLException > x can not be null. > Derby will presently throw an SQLException (client: XJ021, embedded: 22005) > if x is null when calling this method on a preparedStatement. > Porting some applications may be made easier if this restriction is lifted. > See also discussion in DERBY-1904. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.