Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 87891 invoked from network); 28 Dec 2005 19:33:25 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 28 Dec 2005 19:33:25 -0000 Received: (qmail 73502 invoked by uid 500); 28 Dec 2005 19:33:24 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 73464 invoked by uid 500); 28 Dec 2005 19:33:24 -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 73455 invoked by uid 99); 28 Dec 2005 19:33:23 -0000 X-ASF-Spam-Status: No, hits=1.3 required=10.0 tests=SPF_FAIL X-Spam-Check-By: apache.org Received: from [192.87.106.226] (HELO ajax.apache.org) (192.87.106.226) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 28 Dec 2005 11:33:23 -0800 Received: from ajax.apache.org (ajax.apache.org [127.0.0.1]) by ajax.apache.org (Postfix) with ESMTP id 977FDCB for ; Wed, 28 Dec 2005 20:33:02 +0100 (CET) Message-ID: <1140991537.1135798382618.JavaMail.jira@ajax.apache.org> Date: Wed, 28 Dec 2005 20:33:02 +0100 (CET) From: "Daniel John Debrunner (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Assigned: (DERBY-776) Clean up code relating to Object handling in DataValueDescriptor. In-Reply-To: <24282385.1135017690641.JavaMail.jira@ajax.apache.org> 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-776?page=all ] Daniel John Debrunner reassigned DERBY-776: ------------------------------------------- Assign To: Daniel John Debrunner > Clean up code relating to Object handling in DataValueDescriptor. > ----------------------------------------------------------------- > > Key: DERBY-776 > URL: http://issues.apache.org/jira/browse/DERBY-776 > Project: Derby > Type: Sub-task > Components: SQL > Reporter: Daniel John Debrunner > Assignee: Daniel John Debrunner > Priority: Minor > > In looking at DERBY-438 the error: > ERROR XCL12: An attempt was made to put a data value of type 'org.apache.derby.impl.jdbc.EmbedBlob' into a data value of type 'BLOB'. > I think is somewhat due to some confusion in the methods that set the value of a DataValueDescriptor from an object with signature java.lang.Object, e..g. through DVD.setValue(Object) or PreparedStatement.setObject(). > PS.setObject does not use the setValue(Object) method, but instead, based upon the object's class, calls one of the PS.setXXX methods, e.g. setLong() for a java.lang.Long object. This ensures consistent setting of the value, some of the setValue(Object) methods' behaviour does not match what would happen if the same object was passed into a setValue() method with the correct signature. > I think this confusion is historic wrt Cloudscape's support of Java types in SQL. This taks will clean up some of this code and ensure the roles of the set methods are clear wrt Object. (e.g. DVD.setValue(Object), DVD.setObjectForCast). -- 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