Skip to content

Commit 8f0cbac

Browse files
authored
Raise ProgrammingError on -inf (#557)
1 parent d288d3e commit 8f0cbac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

MySQLdb/converters.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def Thing2Str(s, d):
7272

7373
def Float2Str(o, d):
7474
s = repr(o)
75-
if s in ("inf", "nan"):
75+
if s in ("inf", "-inf", "nan"):
7676
raise ProgrammingError("%s can not be used with MySQL" % s)
7777
if "e" not in s:
7878
s += "e0"

0 commit comments

Comments
 (0)