Issue Details (XML | Word | Printable)

Key: DERBY-518
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Minor Minor
Assignee: Deepa Remesh
Reporter: Deepa Remesh
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Derby

Data type mismatch error for boolean to DECIMAL conversion in J2ME

Created: 19/Aug/05 08:36 AM   Updated: 30/Sep/05 02:29 AM
Return to search
Component/s: JDBC
Affects Version/s: None
Fix Version/s: 10.1.2.1, 10.2.1.6

Time Tracking:
Not Specified

File Attachments:
  Size
File derby-518_2.diff 2005-08-27 02:59 AM Deepa Remesh 13 kB
File derby-518_2.status 2005-08-27 02:59 AM Deepa Remesh 0.5 kB
File Licensed for inclusion in ASF works derby-518_3.diff 2005-08-31 08:02 AM Deepa Remesh 13 kB
Environment: J2ME/CDC/Foundation Profile
Issue Links:
dependent
 

Resolution Date: 30/Sep/05 02:29 AM


 Description  « Hide
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.


 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
No work has yet been logged on this issue.