[
https://issues.apache.org/jira/browse/DERBY-5488?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Rick Hillegas updated DERBY-5488:
---------------------------------
Attachment: z.java
derby-5488-04-aa-fixBigIntegerDecimal.diff
Attaching derby-5488-04-aa-fixBigIntegerDecimal.diff. This patch is not ready
for commit yet because there is still a problem in ParameterMappingTest on
CDC/FP 1.1.
This patch gets rid of the NPE. It does this by moving some logic out of the
data factory into SQLDecimal and by implementing some more methods in the small
device version of SQLDecimal, which is called BigIntegerDecimal. I don't think
this is the correct long term fix. The correct long term fix is for our small
device implementation to use SQLDecimal and to get rid of BigIntegerDecimal.
This ought to be possible because java.math.BigDecimal is in CDC/FP 1.1 (it
wasn't in the earlier version of CDC/FP on which our small device
implementation was based originally). However, I think that there may be some
deserialization and upgrade issues for legacy databases which have stored
BigIntegerDecimals. Fixing those issues seems to me to be the province of
another JIRA.
After clearing away the current problems with ParameterMappingTest, the test
trundles along and hits a new problem: a failure on small devices to resolve a
procedure which has BINARY argument types. I have attached a program, z.java,
which shows this problem. The program runs fine on JDK 6 but fails on OJEC.
> Add remaining JDBC 4.1 bits which did not appear in the Java 7 javadoc.
> -----------------------------------------------------------------------
>
> Key: DERBY-5488
> URL: https://issues.apache.org/jira/browse/DERBY-5488
> Project: Derby
> Issue Type: Improvement
> Components: JDBC, SQL
> Affects Versions: 10.9.0.0
> Reporter: Rick Hillegas
> Assignee: Rick Hillegas
> Attachments: JDBC_4.1_Supplement.html,
> derby-5488-01-aa-objectMappingAndConversion.diff,
> derby-5488-02-aa-fixBigInteger.diff,
> derby-5488-03-ac-moveDecimalSetterGetterAndTest.diff,
> derby-5488-04-aa-fixBigIntegerDecimal.diff, z.java
>
>
> In addition to the JDBC 4.1 bits which were visible in the Java 7 javadoc, a
> couple other items appear in the JDBC 4.1 Maintenance Review spec. This spec
> has been published on the JCP website at
> http://download.oracle.com/otndocs/jcp/jdbc-4_1-mrel-eval-spec/index.html. I
> will attach a functional spec for the remaining bits.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira