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:
@ -9,7 +9,7 @@ import re
|
||||
import sys
|
||||
|
||||
from .compat import unicode
|
||||
from ._mysql_exceptions import (
|
||||
from ._exceptions import (
|
||||
Warning, Error, InterfaceError, DataError,
|
||||
DatabaseError, OperationalError, IntegrityError, InternalError,
|
||||
NotSupportedError, ProgrammingError)
|
||||
@ -48,7 +48,7 @@ class BaseCursor(object):
|
||||
#: Default value of max_allowed_packet is 1048576.
|
||||
max_stmt_length = 64*1024
|
||||
|
||||
from ._mysql_exceptions import (
|
||||
from ._exceptions import (
|
||||
MySQLError, Warning, Error, InterfaceError,
|
||||
DatabaseError, DataError, OperationalError, IntegrityError,
|
||||
InternalError, ProgrammingError, NotSupportedError,
|
||||
|
Reference in New Issue
Block a user