db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel John Debrunner <...@debrunners.com>
Subject Re: getBoolean() throws data conversion exception for DECIMAL type in J2ME/CDC/Foundation
Date Thu, 07 Jul 2005 20:00:48 GMT
Deepa Remesh wrote:

> When I ran the test jdbcapi/resultset.java using J2ME/CDC/Foundation,
> I noticed that call to the ResultSet method getBoolean() for a DECIMAL
> value throws data conversion exception. I found that 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.
> 
> I have a couple of questions:
> 
> 1. Is there a reason for not implementing getBoolean() in the class
> 'BigIntegerDecimal'?

No, I just missed it.
> 
> 2. SQLDecimal implements getBoolean(). Can a similar implementation be
> provided in BigIntegerDecimal? If this is the case, I can open a JIRA
> issue for this and work on it.

That would be great!

Dan.



Mime
View raw message