Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
None
-
None
Description
Passing in parameters causes decimals to be returned as strings.
conn = mariadb.connect(**config)
cur = conn.cursor()
query = "select round(.75 * (? / 3), 2) as val"
cur.execute(query,[5])
print(result)
- returns ('1.25',)
conn = mariadb.connect(**config)
cur = conn.cursor()
query = "select round(.75 * (6 / 3), 2) as val"
cur.execute(query)
print(result)
- returns (Decimal('1.50'),)