[ https://issues.apache.org/jira/browse/DERBY-3126?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Kathey Marsden updated DERBY-3126:
----------------------------------
Attachment: derby-2073_diff.txt
Here is an updated patch that handles negative scale with setBigDecimal. It does not take
care of the exception Knut pointed out with setObject.
In order to send a packed decimal over DRDA, I had to convert the BigDecimal to an equivalent
BigDecimal with zero scale. I put the conversion in the same place as the other scale and
precision handling. I hope this is the right place in the code to do this.
suiltes.All passed. derbyall running.
Please review.
Kathey
> Inserting BigDecimal value in PreparedStatement with setBigDecimal into double column
loses fractional digits
> -------------------------------------------------------------------------------------------------------------
>
> Key: DERBY-3126
> URL: https://issues.apache.org/jira/browse/DERBY-3126
> Project: Derby
> Issue Type: Sub-task
> Components: JDBC, Network Client
> Reporter: Kathey Marsden
> Attachments: derby-2073_diff.txt, derby-2073_diff.txt, derby-2073_diff.txt, derby-2073_stat.txt,
derby-2073_stat.txt
>
>
> Splitting this issue into two subtasks one for setBigDecimal and one for setObject as
they take a different code path and I plan to submit separate patches. Reproduces with BigDecimalProblemTester
attached to DERBY-2073
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
|