ER_BAD_NULL should be IntegrityError. (#579)

Fixes #535
This commit is contained in:
Inada Naoki
2023-03-13 19:09:17 +09:00
committed by GitHub
parent b419beab9e
commit 58465cfa87
4 changed files with 57 additions and 4 deletions

View File

@ -180,6 +180,7 @@ _mysql_Exception(_mysql_ConnectionObject *c)
#ifdef ER_NO_DEFAULT_FOR_FIELD
case ER_NO_DEFAULT_FOR_FIELD:
#endif
case ER_BAD_NULL_ERROR:
e = _mysql_IntegrityError;
break;
#ifdef ER_WARNING_NOT_COMPLETE_ROLLBACK