[ODBC-308] Various issues with SQL_NUMERIC type conversions Created: 2021-04-12  Updated: 2021-04-19  Resolved: 2021-04-15

Status: Closed
Project: MariaDB Connector/ODBC
Component/s: General
Affects Version/s: 3.1.11
Fix Version/s: 3.1.12

Type: Bug Priority: Major
Reporter: Lawrin Novitsky Assignee: Lawrin Novitsky
Resolution: Fixed Votes: 0
Labels: None


 Description   

There are issues in the conversion in both directions - from SQL_NUMERIC_STRUCT to string, and from string to the struct.
Mostly that is not detected or incorrectly detected overflow.
Also, negative scale is incorrectly processed in many cases.
Current SQL_NUMERIC_STRUCT->string conversion algorithm cannot correctly process >8bytes numbers, but doesn't report the error in this case either.
If scale is > max supported(38) no warning is returned, and this value is used.



 Comments   
Comment by Lawrin Novitsky [ 2021-04-15 ]

Commit 5cf7740

Generated at Thu Feb 08 03:27:45 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.