db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Deepa Remesh (JIRA)" <derby-...@db.apache.org>
Subject [jira] Updated: (DERBY-518) Data type mismatch error for boolean to DECIMAL conversion in J2ME
Date Fri, 26 Aug 2005 17:59:27 GMT
     [ http://issues.apache.org/jira/browse/DERBY-518?page=all ]

Deepa Remesh updated DERBY-518:

    Attachment: derby-518_2.diff

I have deleted my old patch and uploaded the new patch for this. I have moved setValue(boolean)
to BinaryDecimal and removed setValue(Object). This patch can be applied to 10.1 branch too.

Ran derbyall with Sun J2SE 1.4.2 and IBM's WCTME 5.7 J2ME/CDC/FP. 1 failure in J2ME, which
is not related to this change.  The testcase unit/T_RawStoreFactory.unit fails intermittently
on J2ME. I will open a  JIRA issue for this.

> Data type mismatch error for boolean to DECIMAL conversion in J2ME
> ------------------------------------------------------------------
>          Key: DERBY-518
>          URL: http://issues.apache.org/jira/browse/DERBY-518
>      Project: Derby
>         Type: Bug
>   Components: JDBC
>  Environment: J2ME/CDC/Foundation Profile
>     Reporter: Deepa Remesh
>     Assignee: Deepa Remesh
>     Priority: Minor
>      Fix For:,
>  Attachments: derby-518_2.diff, derby-518_2.status
> The test jdbcapi/resultset.java gives the following error when run in J2ME/CDC/FP :
> Testing nullif(?,DECIMAL(10,5)) with setBoolean
> ERROR XCL12: An attempt was made to put a data value of type 'boolean' into a data value
of type 'DECIMAL'.
> I found that setValue(boolean) is not implemented in BigIntegerDecimal, which is the
class used for DECIMAL in J2ME. This is implemented in SQLDecimal and a similar implementation
can be provided in BigIntegerDecimal.
> On looking at the setValue methods in these classes, I also found that setValue(Object)
is implemented in SQLDecimal but not in BigIntegerDecimal.

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:

View raw message