Skip to content

Commit 7092f49

Browse files
committed
fixed float bug while escaping values with db.literal...
1 parent 6592420 commit 7092f49

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

MySQLdb/converters.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def Bytes2Str(s, d):
6464
Long2Int = Thing2Str
6565

6666
def Float2Str(o, d):
67-
return '%.15g'.format(o)
67+
return '{:f}'.format(o)
6868

6969
def None2NULL(o, d):
7070
"""Convert None to NULL."""

0 commit comments

Comments
 (0)