[CONPY-50] Convert Decimal to non native Decimal type Created: 2020-04-02 Updated: 2020-04-02 Resolved: 2020-04-02 |
|
| Status: | Closed |
| Project: | MariaDB Connector/Python |
| Component/s: | Generic |
| Affects Version/s: | 0.9.55 |
| Fix Version/s: | 0.9.56, N/A |
| Type: | Bug | Priority: | Major |
| Reporter: | Georg Richter | Assignee: | Georg Richter |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | None | ||
| Description |
|
In current implemenation of MariaDB Connector/C MYSQL_TYPE_NEWDECIMAL is converted into a string in both text and binary protocol. For compatibility reasons it should be converted to (non native) Decimal type, which will require an additional import of the decimal module. How to repeat:
Python:
Output:
The example above only shows Decimal usage in result set, it needs to be supported also in parameters for execute() and executemany() |
| Comments |
| Comment by Georg Richter [ 2020-04-02 ] |
|
Duplicate of |