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 Deepa Remesh <dr...@gmail.com> on 2005/07/07 20:56:03 UTC
getBoolean() throws data conversion exception for DECIMAL type in J2ME/CDC/Foundation
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'?
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.
Thanks,
Deepa
Re: getBoolean() throws data conversion exception for DECIMAL type
in J2ME/CDC/Foundation
Posted by Daniel John Debrunner <dj...@debrunners.com>.
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.
Committer for Derby-331?
Posted by "Dag H. Wanvik" <Da...@Sun.COM>.
Hi,
Can somebody review/commit my patch for Derby-331? I see it is still
unresolved. Mamta had one comment earlier which I incorporated in the
present version of the patch. (http://mail-archives.apache.org/mod_mbox/db-derby-dev/200506.mbox/%3cd9619e4a05061311154b8ba275@mail.gmail.com%3e)
Dag