Details
-
Bug
-
Status: Closed (View Workflow)
-
Critical
-
Resolution: Fixed
-
None
-
None
Description
When parsing double/decimal value, driver might truncate result:
the readFloatLengthCoded and readDecimalLengthEncoded functions will have some problem when integer or fractional part is > than 9007199254740991 due to int limitation (ieee-754).
example -0.9999237060546875 will return -0.9999237060546876
Attachments
Activity
Field | Original Value | New Value |
---|---|---|
issue.field.resolutiondate | 2020-07-23 10:21:16.0 | 2020-07-23 10:21:16.426 |
Component/s | other [ 14408 ] | |
Fix Version/s | 2.4.2 [ 24702 ] | |
Resolution | Fixed [ 1 ] | |
Status | Open [ 1 ] | Closed [ 6 ] |
Description |
When parsing double of float value, driver might truncate value:
the readFloatLengthCoded and readDecimalLengthEncoded functions will have some problem when integer or fractional part is > than 9007199254740991 due to int limitation (ieee-754). example -0.9999237060546875 will return -0.9999237060546876 |
When parsing double/float/decimal value, driver might truncate result:
the readFloatLengthCoded and readDecimalLengthEncoded functions will have some problem when integer or fractional part is > than 9007199254740991 due to int limitation (ieee-754). example -0.9999237060546875 will return -0.9999237060546876 |
Description |
When parsing double/float/decimal value, driver might truncate result:
the readFloatLengthCoded and readDecimalLengthEncoded functions will have some problem when integer or fractional part is > than 9007199254740991 due to int limitation (ieee-754). example -0.9999237060546875 will return -0.9999237060546876 |
When parsing double/decimal value, driver might truncate result:
the readFloatLengthCoded and readDecimalLengthEncoded functions will have some problem when integer or fractional part is > than 9007199254740991 due to int limitation (ieee-754). example -0.9999237060546875 will return -0.9999237060546876 |
Summary | Float parsing wrong truncation | number parsing wrong truncation |
Summary | number parsing wrong truncation | number parsing loss of Precision |
Summary | number parsing loss of Precision | Number parsing loss of Precision |
Summary | Number parsing loss of Precision | Number parsing loss of precision |
Priority | Major [ 3 ] | Critical [ 2 ] |
Workflow | MariaDB v3 [ 111625 ] | MariaDB v4 [ 135298 ] |