1
0
mirror of https://github.com/MariaDB/server.git synced 2026-01-06 05:22:24 +03:00

branches/zip: Remove the error code DB_CANNOT_DROP_FOREIGN_INDEX.

It was only set by ha_innobase::prepare_drop_index(), which can return
the appropriate MySQL error code (HA_ERR_DROP_INDEX_FK) directly.

ha_innobase::add_index(): Correct the function comment.

ha_innobase::prepare_drop_index(): Correct the function comment.
Return MySQL error codes directly.

ha_innobase::final_drop_index(): Correct the function comment.
This commit is contained in:
marko
2007-08-15 15:49:58 +00:00
parent dddb659202
commit 91ee8176f6
2 changed files with 21 additions and 26 deletions

View File

@@ -66,10 +66,7 @@ Created 5/24/1996 Heikki Tuuri
preconfigured undo slots, this can
only happen when there are too many
concurrent transactions */
#define DB_CANNOT_DROP_FOREIGN_INDEX 48 /* we cannot drop an index because
it is needed on foreign key
constraint */
#define DB_PRIMARY_KEY_IS_NULL 49 /* a column in the PRIMARY KEY
#define DB_PRIMARY_KEY_IS_NULL 48 /* a column in the PRIMARY KEY
was found to be NULL */
/* The following are partial failure codes */