Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
None
-
None
Description
We are testing out utilizing the MariaDB python connector and have noticed a difference in how things seem to be converted. We have a lot of processes that return the value as a decimal, and from that point we do comparisons on them. When running the MariaDB python connector, these seem to be converted into a string when returned from the database, this causing issues in the direct comparisons.
MariaDB Connector return with decimal values, shown as a string:
[['27', 53549, '0.0005', '0.9995']]
Other connectors:
[[Decimal('27'), 53549, Decimal('0.0005'), Decimal('0.9995')]]