We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d288d3e commit 8f0cbacCopy full SHA for 8f0cbac
MySQLdb/converters.py
@@ -72,7 +72,7 @@ def Thing2Str(s, d):
72
73
def Float2Str(o, d):
74
s = repr(o)
75
- if s in ("inf", "nan"):
+ if s in ("inf", "-inf", "nan"):
76
raise ProgrammingError("%s can not be used with MySQL" % s)
77
if "e" not in s:
78
s += "e0"
0 commit comments