mirror of
https://github.com/mariadb-corporation/mariadb-connector-python.git
synced 2025-08-02 00:22:02 +00:00
Exceptions: ER_BAD_FIELD_ERROR - wrong exception
ER_BAD_FIELD_ERROR (1054) was not handled and therefore returned as OperationalError instead of ProgrammingError.
This commit is contained in:
@ -82,6 +82,7 @@ static PyObject *get_exception_type(int error_number)
|
||||
case ER_WRONG_DB_NAME:
|
||||
case ER_WRONG_TABLE_NAME:
|
||||
case ER_BAD_DB_ERROR:
|
||||
case ER_BAD_FIELD_ERROR:
|
||||
return Mariadb_ProgrammingError;
|
||||
|
||||
/* IntegrityError: Exception raised when the relational integrity of the database is affected,
|
||||
|
Reference in New Issue
Block a user