Bug #106065 Contribution: BigDecimal.toPlainString no need to check decimal exponent.
Submitted: 5 Jan 2022 14:32 Modified: 5 Apr 2022 22:37
Reporter: OCA Admin (OCA) Email Updates:
Status: Closed Impact on me:
None 
Category:Connector / J Severity:S3 (Non-critical)
Version:8.0 OS:Any
Assigned to: CPU Architecture:Any
Tags: Contribution

[5 Jan 2022 14:32] OCA Admin
Description:
This bug tracks a contribution by chen yi (Github user: leonchen83) as described in http://github.com/mysql/mysql-connector-j/pull/69

How to repeat:
See description

Suggested fix:
See contribution code attached
[5 Jan 2022 14:32] OCA Admin
Contribution submitted via Github - BigDecimal.toPlainString no need to check decimal exponent. 
(*) Contribution by chen yi (Github leonchen83, mysql-connector-j/pull/69#issuecomment-1005341923): I confirm the code being submitted is offered under the terms of the OCA, and that I am authorized to contribute it.

Contribution: git_patch_809516498.txt (text/plain), 6.98 KiB.

[5 Jan 2022 14:40] MySQL Verification Team
Hello leonchen83,

Thank you for the report and contribution.

regards,
Umesh
[26 Jan 2022 8:34] Frederic Descamps
This contribution has been processed by our development team and has been accepted.

It will be included into a future release.

Thank you again.
[5 Apr 2022 22:37] Daniel So
Posted by developer:
 
Added the following entry to the Connector/J 8.0.29 changelog: 

"When decoding decimals, the constructor used for creating the BigDecimal object has been changed from BigDecimal(String) to BigDecimal(char[]) in order to save memory. Thanks to Chen Yi for contributing to this improvement."