Raise ProgrammingError for nan and inf (#314)

* Raise ProgrammingError when inf or nan is passed
  Fixes #246
* Rename _mysql_exceptions -> _exceptions
This commit is contained in:
INADA Naoki
2018-12-14 16:46:30 +09:00
committed by GitHub
parent 911bef988c
commit 8ad1525c3f
10 changed files with 20 additions and 19 deletions

View File

@ -2669,7 +2669,7 @@ init_mysql(void)
(PyObject *)&_mysql_ResultObject_Type))
goto error;
Py_INCREF(&_mysql_ResultObject_Type);
if (!(emod = PyImport_ImportModule("MySQLdb._mysql_exceptions"))) {
if (!(emod = PyImport_ImportModule("MySQLdb._exceptions"))) {
PyErr_Print();
goto error;
}