Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 58725 invoked from network); 9 Oct 2006 22:49:00 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 9 Oct 2006 22:49:00 -0000 Received: (qmail 44665 invoked by uid 500); 9 Oct 2006 22:48:59 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 44639 invoked by uid 500); 9 Oct 2006 22:48: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 44630 invoked by uid 99); 9 Oct 2006 22:48:59 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Oct 2006 15:48: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, 09 Oct 2006 15:48:58 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id E97DC7142D6 for ; Mon, 9 Oct 2006 15:48:20 -0700 (PDT) Message-ID: <14746317.1160434100954.JavaMail.root@brutus> Date: Mon, 9 Oct 2006 15:48:20 -0700 (PDT) From: "Tomohito Nakayama (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-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-1938?page=comments#action_12441001 ] Tomohito Nakayama commented on DERBY-1938: ------------------------------------------ Next information was posted to mailing list. The following wording was added to the JDBC 4.0 javadocs to address this issue: Note: Not all databases allow for a non-typed Null to be sent to the backend. For maximum portability, the setNull or the setObject(int parameterIndex, Object x, int sqlType) method should be used instead of setObject(int parameterIndex, Object x). I think the decision should be deferred and wait for requests ... > Add support for setObject(, null) > -------------------------------------- > > Key: DERBY-1938 > URL: http://issues.apache.org/jira/browse/DERBY-1938 > Project: Derby > Issue Type: Improvement > Components: JDBC > Reporter: Dag H. Wanvik > Assigned To: Tomohito Nakayama > Priority: Minor > Attachments: 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. - 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