[ 
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

Reply via email to