8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2330bf7 commit 0f4d45eCopy full SHA for 0f4d45e
pymysql/converters.py
@@ -159,6 +159,11 @@ def escape_date(obj, mapping=None):
159
def escape_struct_time(obj, mapping=None):
160
return escape_datetime(datetime.datetime(*obj[:6]))
161
162
+
163
+def Decimal2Literal(o, d):
164
+ return format(o, "f")
165
166
167
def _convert_second_fraction(s):
168
if not s:
169
return 0
@@ -337,7 +342,7 @@ def through(x):
337
342
datetime.timedelta: escape_timedelta,
338
343
datetime.time: escape_time,
339
344
time.struct_time: escape_struct_time,
340
- Decimal: escape_object,
345
+ Decimal: Decimal2Literal,
341
346
}
347
348
if not PY2 or JYTHON or IRONPYTHON:
0 commit comments