diff --git a/_mysql.c b/_mysql.c index a479b4b1..df8bd1b1 100644 --- a/_mysql.c +++ b/_mysql.c @@ -193,6 +193,9 @@ _mysql_Exception(_mysql_ConnectionObject *c) #endif #ifdef ER_CANNOT_ADD_FOREIGN case ER_CANNOT_ADD_FOREIGN: +#endif +#ifdef ER_NO_DEFAULT_FOR_FIELD + case ER_NO_DEFAULT_FOR_FIELD: #endif e = _mysql_IntegrityError; break;