You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Today I found the similary issue #217 but this time is Decimal datatype, because after #221 all unicode will be converted to string, but Decimal will be converted to unicode, for example:
>>> from pymysql.converters import escape_item
>>> from decimal import Decimal
>>> escape_item(Decimal('0.4'), 'utf8')
u'0.4'
So this will cause encode error with other non-ascii strings.
Today I found the similary issue #217 but this time is Decimal datatype, because after #221 all unicode will be converted to string, but Decimal will be converted to unicode, for example:
So this will cause encode error with other non-ascii strings.
And I tried to fix it, the code is:
The text was updated successfully, but these errors were encountered: