You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-dev@db.apache.org by "Daniel John Debrunner (JIRA)" <de...@db.apache.org> on 2006/02/07 19:48:00 UTC

[jira] Resolved: (DERBY-776) Clean up code relating to Object handling in DataValueDescriptor.

     [ http://issues.apache.org/jira/browse/DERBY-776?page=all ]
     
Daniel John Debrunner resolved DERBY-776:
-----------------------------------------

    Fix Version: 10.2.0.0
     Resolution: Fixed

Cleanup completed

> 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
>      Fix For: 10.2.0.0

>
> 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