db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dag H. Wanvik" <Dag.Wan...@Sun.COM>
Subject Re: [jira] Created: (DERBY-447) getBoolean() throws data conversion exception for DECIMAL type in J2ME/CDC/Foundation
Date Fri, 08 Jul 2005 17:38:51 GMT

Hi again,

>>>>> "DJD" == Daniel John Debrunner <djd@debrunners.com> wrote:

DJD> >     public boolean supportsConvert() {
DJD> > 	return true;
DJD> >     }
DJD> > 
DJD> >     public boolean supportsConvert(int fromType, int toType) {
DJD> >     /*
DJD> >      * at the moment we don't support CONVERT at all, so we take the easy
DJD> >      * way out.  Eventually we need to figure out how to handle this
DJD> >      * cleanly.
DJD> >      */
DJD> >      return false;
DJD> > 
DJD> > JDBC 3.0 section 14.2.3.1 "Data Type Conversions" says this method
DJD> > should return true if the driver supports the respective getter method
DJD> > on the result set.
DJD> 
DJD> There's some inconsistency here, the ResultSet getter methods are
DJD> converting from SQL data types to Java data types. This supportsConvert
DJD> method takes two arguments, both of which describe SQL data types.

Yes, you are right. Something for Lance to clarify :) 
But it would seem the no-args supportsConvert() should return false
until we add support for CONVERT.

Dag


Mime
View raw message