Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 36845 invoked from network); 15 Jun 2007 12:30:49 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 15 Jun 2007 12:30:49 -0000 Received: (qmail 10658 invoked by uid 500); 15 Jun 2007 12:30:50 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 10622 invoked by uid 500); 15 Jun 2007 12:30:50 -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 10608 invoked by uid 99); 15 Jun 2007 12:30:50 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 15 Jun 2007 05:30:50 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 15 Jun 2007 05:30:46 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id A0ACA71413F for ; Fri, 15 Jun 2007 05:30:26 -0700 (PDT) Message-ID: <5883270.1181910626655.JavaMail.jira@brutus> Date: Fri, 15 Jun 2007 05:30:26 -0700 (PDT) From: "V.Narayanan (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Closed: (DERBY-2430) setObject(int targetType, Blob source) and setObject(int targetType, Clob source) should disallow updates on all targetTypes except BLOB and CLOB respectively In-Reply-To: <8193447.1173426684128.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 [ https://issues.apache.org/jira/browse/DERBY-2430?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] V.Narayanan closed DERBY-2430. ------------------------------ > setObject(int targetType, Blob source) and setObject(int targetType, Clob source) should disallow updates on all targetTypes except BLOB and CLOB respectively > --------------------------------------------------------------------------------------------------------------------------------------------------------------- > > Key: DERBY-2430 > URL: https://issues.apache.org/jira/browse/DERBY-2430 > Project: Derby > Issue Type: Sub-task > Components: Network Client > Environment: All > Reporter: V.Narayanan > Assignee: V.Narayanan > Fix For: 10.3.0.0 > > Attachments: releaseNote.html, setObjectForClobBlob_v1.diff, setObjectForClobBlob_v1.stat > > > updateBlob(int columnIndex, Blob x), updateClob(int columnIndex, Clob x) can be implemented by forwarding calls to setObject(int targetType, Blob source), setObject(int targetType, Clob source). If this this done then > 1) updateClob on a CHAR/VARCHAR/LONG VARCHAR column throws an exception on the Embedded Driver but not on the NetworkClient > 2) updateBlob works on a CHAR/VARCHAR/LONG VARCHAR FOR BIT DATA throws an exception on the Embedded Driver but not on the NetworkClient > From what the JDBC 4.0 spec says (pg 198 table b-5) the Embedded behaviour seems to be correct. > This can be fixed by Matching Embedded behaviour. This would involve throwing an exception in the cases mentioned above -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.