[
https://issues.apache.org/jira/browse/DERBY-5488?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Rick Hillegas updated DERBY-5488:
---------------------------------
Attachment: derby-5488-02-aa-fixBigInteger.diff
Attaching derby-5488-02-aa-fixBigInteger.diff. This patch corrects the behavior
of setObject( int, BigInteger ). I will run tests.
The overflow/underflow/truncation behavior of setObject() is not clearly
documented by the JDBC spec. Lance Andersen thinks that this might be addressed
in JDBC 4.2, the next rev of the spec which will accompany Java 8.
In the meantime, I have let the following principles guide the revised
implementation of setObject( int, BigInteger ):
1) Overflow/underflow/truncation should behave as it does for other numeric
objects.
2) BigInteger should not be less capable than the corresponding BigDecimal for
the same integer value.
Touches the following files:
----------
M java/engine/org/apache/derby/impl/jdbc/EmbedPreparedStatement20.java
M java/engine/org/apache/derby/impl/jdbc/EmbedPreparedStatement.java
Fix for embedded JDBC driver.
----------
M java/client/org/apache/derby/client/am/CrossConverters.java
M java/client/org/apache/derby/client/am/PreparedStatement.java
Fix for network JDBC driver.
----------
M
java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/ParameterMappingTest.java
Additional test case to verify overflow/underflow/truncation behavior.
> 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
>
>
> 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