[CONCPP-96] PreparedStatement SetDouble Drops Significant Digits Created: 2022-02-20 Updated: 2022-05-09 Resolved: 2022-05-09 |
|
| Status: | Closed |
| Project: | MariaDB Connector/C++ |
| Component/s: | General |
| Affects Version/s: | 1.0.1, 1.1.0 |
| Fix Version/s: | 1.0.2, 1.1.2 |
| Type: | Bug | Priority: | Major |
| Reporter: | Joe C | Assignee: | Lawrin Novitsky |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Tested with mariadbcpp versions 1.0.1 and 1.0.0 on ubuntu 20.04 |
||
| Description |
|
Table for testing:
C++ code for testing:
Query Output:
pstmnt->setDouble only processes the first 6 significant digits and zeros the remaining. |
| Comments |
| Comment by Lawrin Novitsky [ 2022-02-22 ] |
|
Thank you for your report. I could reproduce the issue. The picture is slightly better with useServerPrepStmts, but still some digits are dropped |
| Comment by Joe C [ 2022-02-22 ] |
|
Thanks. |
| Comment by Lawrin Novitsky [ 2022-05-09 ] |
|
The fix and the testcase have been pushed to mater(1.0) branch. Yet to be merged into develop(1.1 branch). The fix ensures that decimal digits are not lost during conversion to the string. |