diff options
author | adustman <adustman@9fc6cd9a-920d-0410-adcf-ac96716ed7e8> | 2006-02-27 05:31:14 +0000 |
---|---|---|
committer | adustman <adustman@9fc6cd9a-920d-0410-adcf-ac96716ed7e8> | 2006-02-27 05:31:14 +0000 |
commit | 854f8e904a8e220877d1e920321b3223fd58cf30 (patch) | |
tree | 904352931078c1da32de3ec7f8f03a91d41f0f8c | |
parent | d90d2c8875d2191a4350f9bcb787c07e30b8f3b3 (diff) | |
download | mysqldb1-854f8e904a8e220877d1e920321b3223fd58cf30.tar.gz |
Translate some additional error codes
-rw-r--r-- | MySQLdb/_mysql.c | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/MySQLdb/_mysql.c b/MySQLdb/_mysql.c index ae2b2bb..822aed8 100644 --- a/MySQLdb/_mysql.c +++ b/MySQLdb/_mysql.c @@ -149,13 +149,31 @@ _mysql_Exception(_mysql_ConnectionObject *c) #ifdef ER_PRIMARY_CANT_HAVE_NULL case ER_PRIMARY_CANT_HAVE_NULL: #endif +#ifdef ER_NO_REFERENCED_ROW + case ER_NO_REFERENCED_ROW: +#endif +#ifdef ER_ROW_IS_REFERENCED + case ER_ROW_IS_REFERENCED: +#endif +#ifdef ER_CANNOT_ADD_FOREIGN + case ER_CANNOT_ADD_FOREIGN: +#endif e = _mysql_IntegrityError; break; #ifdef ER_WARNING_NOT_COMPLETE_ROLLBACK case ER_WARNING_NOT_COMPLETE_ROLLBACK: +#endif +#ifdef ER_NOT_SUPPORTED_YET + case ER_NOT_SUPPORTED_YET: +#endif +#ifdef ER_FEATURE_DISABLED + case ER_FEATURE_DISABLED: +#endif +#ifdef ER_UNKNOWN_STORAGE_ENGINE + case ER_UNKNOWN_STORAGE_ENGINE: +#endif e = _mysql_NotSupportedError; break; -#endif default: if (merr < 1000) e = _mysql_InternalError; |