db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel John Debrunner (JIRA)" <derby-...@db.apache.org>
Subject [jira] Commented: (DERBY-447) getBoolean() throws data conversion exception for DECIMAL type in J2ME/CDC/Foundation
Date Fri, 08 Jul 2005 05:18:10 GMT
    [ http://issues.apache.org/jira/browse/DERBY-447?page=comments#action_12315278 ] 

Daniel John Debrunner commented on DERBY-447:
---------------------------------------------

Rather than this code

 String bigDecimalString = getString();
if(bigDecimalString == null)
return false;

to see if the value is NULL, you should use the isNull() method. e.g.

if (isNull())
   return false;

otherwise it looks good. Can you re-submit a patch?

> getBoolean() throws data conversion exception for DECIMAL type in J2ME/CDC/Foundation
> -------------------------------------------------------------------------------------
>
>          Key: DERBY-447
>          URL: http://issues.apache.org/jira/browse/DERBY-447
>      Project: Derby
>         Type: Bug
>   Components: JDBC
>     Reporter: Deepa Remesh
>     Assignee: Deepa Remesh
>  Attachments: derby-447.diff
>
> The call to the ResultSet method getBoolean() for a DECIMAL value throws data conversion
exception with J2ME/CDC/Foundation. The class BigIntegerDecimal, which is used for DECIMAL
support in J2ME/CDC/Foundation, does not override the getBoolean() method from the class DataType.
The getBoolean() method in DataType simply throws a data conversion exception.

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


Mime
View raw message