Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
1.1.2
-
None
-
3.10
Description
Values aren't being casted accurately in 1.1.x. Casting worked fine until last 1.0.x. Setting the converter option with a map that looks like the following block:
# converter map
|
{
|
FIELD_TYPE.NEWDECIMAL: float, |
FIELD_TYPE.DATETIME: get_datetime,
|
}
|
 |
# sample snippet
|
>>> cursor.execute("select 1.1-2.1") |
>>> cursor.fetchall()
|
[(Decimal('-1.0'),)] # in version 1.1.3 |
[(-1.0,),] # in version 1.0.x |