[ODBC-133] Incorrect return values for decimal data type Created: 2018-01-31 Updated: 2020-08-25 Resolved: 2018-03-25 |
|
| Status: | Closed |
| Project: | MariaDB Connector/ODBC |
| Component/s: | General |
| Affects Version/s: | 3.0.2 |
| Fix Version/s: | 3.0.4, 2.0.17 |
| Type: | Bug | Priority: | Minor |
| Reporter: | Shiya | Assignee: | Lawrin Novitsky |
| Resolution: | Fixed | Votes: | 1 |
| Labels: | datatype | ||
| Environment: |
Windows 2012 R2 64 |
||
| Attachments: |
|
| Description |
|
I'm experiencing issues with with DECIMAL data types using the MariaDB ODBC driver (tested using MS SQL Linked Server and MS Vbscript - ADODB.Connection). select * Returns "0.0001" Using the MySQL ODBC 5.3 Driver running the same query returns "1.0000" I'm experiencing the same issue using the MariaDB driver to return a column of datatype DECIMAL(19,4) - if the column contains '1' then it's returned as '0.0001'. Having similar issues inserting data into MariaDB using MS SQL Linked Server for columns cast as DECIMAL(19,4). Updating data using the MariaDB connector for the DECIMAL data type returns the following error: |
| Comments |
| Comment by Lawrin Novitsky [ 2018-01-31 ] |
|
Thank you for your report, and especially for providing all traces! |
| Comment by Lawrin Novitsky [ 2018-03-21 ] |
|
Would it possible to try with 3.0.3 version? There were couple of patches in 3.0.3 concerning SQL_C_NUMERIC. And I can see that it returns correct value for your case, not with requested scale, though. |
| Comment by Lawrin Novitsky [ 2018-03-25 ] |
|
The issue has ben mainly fixed in 3.0.3. Now I only added NUMERIC to be always returned with requested scale. And testcsases. |