Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion MySQLdb/converters.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def Thing2Str(s, d):

def Float2Str(o, d):
s = repr(o)
if s in ("inf", "nan"):
if s in ("inf", "-inf", "nan"):
raise ProgrammingError("%s can not be used with MySQL" % s)
if "e" not in s:
s += "e0"
Expand Down