mirror of
https://github.com/PyMySQL/mysqlclient.git
synced 2025-08-15 02:54:29 +08:00
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:
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user