Thanks to visit codestin.com
Credit goes to github.com

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
Raise ProgrammingError on -inf
  • Loading branch information
methane committed Sep 19, 2022
commit e883719eef93fc5eceaff027725023b3fbee8a9b
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