Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 64658 invoked from network); 9 Mar 2007 12:15:16 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 9 Mar 2007 12:15:16 -0000 Received: (qmail 49131 invoked by uid 500); 9 Mar 2007 12:15:24 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 48994 invoked by uid 500); 9 Mar 2007 12:15:23 -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 48977 invoked by uid 99); 9 Mar 2007 12:15:23 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= 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, 09 Mar 2007 04:15:23 -0800 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 757DB714062 for ; Fri, 9 Mar 2007 04:14:24 -0800 (PST) Message-ID: <1926208.1173442464479.JavaMail.root@brutus> Date: Fri, 9 Mar 2007 04:14:24 -0800 (PST) From: "V.Narayanan (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Updated: (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 updated DERBY-2430: ------------------------------- Derby Info: [Patch Available] > 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 > Assigned To: V.Narayanan > Attachments: 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.