Issue Details (XML | Word | Printable)

Key: DERBY-447
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
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

getBoolean() throws data conversion exception for DECIMAL type in J2ME/CDC/Foundation

Created: 08/Jul/05 06:32 AM   Updated: 30/Sep/05 02:18 AM
Return to search
Component/s: JDBC
Affects Version/s: 10.1.1.0, 10.2.1.6
Fix Version/s: 10.1.2.1, 10.2.1.6

Time Tracking:
Not Specified

File Attachments:
  Size
File Licensed for inclusion in ASF works derby-447_2.diff 2005-07-09 12:41 AM Deepa Remesh 0.7 kB

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


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

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Repository Revision Date User Message
ASF #209845 Fri Jul 08 17:28:52 UTC 2005 djd DERBY-447
This patch implements getBoolean() method in BigIntegerDecimal, which is the class used for DECIMAL support
in J2ME/CDC/Foundation. The method returns false for zero or null values and true for all other values.

Contributed by Deepa Remesh dremesh@gmail.com
Files Changed
MODIFY /incubator/derby/code/trunk/java/engine/org/apache/derby/iapi/types/BigIntegerDecimal.java

Repository Revision Date User Message
ASF #219260 Fri Jul 15 23:26:12 UTC 2005 djd DERBY-447 - merge 209845 from trunk. Fix getBoolean() on DECIMAL in JSR169.
Files Changed
MODIFY /incubator/derby/code/branches/10.1/java/engine/org/apache/derby/iapi/types/BigIntegerDecimal.java

Repository Revision Date User Message
ASF #392304 Fri Apr 07 14:32:48 UTC 2006 bpendleton DERBY-1184: registerOutParameter(int,int,String) should throw exception

Patch contributed by Kristian Waagan (Kristian.Waagan@Sun.com)

The method 'CallableStatement.registerOutParameter(int,int,String)'
does nothing in the client driver. As stated in DERBY-447, the method throws
a not-implemented exception in the embedded driver. The method should be
changed to do this on the client side as well.
Files Changed
MODIFY /db/derby/code/trunk/java/client/org/apache/derby/client/am/CallableStatement.java
MODIFY /db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/derbynet/callable.java