diff options
author | unknown <heikki@hundin.mysql.fi> | 2004-10-12 18:12:00 +0300 |
---|---|---|
committer | unknown <heikki@hundin.mysql.fi> | 2004-10-12 18:12:00 +0300 |
commit | eb3b0480002d257d9beb5262fd51619cc4b50a1f (patch) | |
tree | cb3364934fa98e85be0f7c9b45a2d7734b010b93 /sql/ha_innodb.cc | |
parent | c061a812a17025fde30e6331ee59a4431323b316 (diff) | |
download | mariadb-git-eb3b0480002d257d9beb5262fd51619cc4b50a1f.tar.gz |
ha_innodb.cc:
Change error code to HA_ERR_ROW_IS_REFERENCED if we cannot DROP a parent table referenced by a FOREIGN KEY constraint; this error number is less misleading than the previous value HA_ERR_CANNOT_ADD_FOREIGN, but misleading still; we should introduce to 5.0 a proper MySQL error code
sql/ha_innodb.cc:
Change error code to HA_ERR_ROW_IS_REFERENCED if we cannot DROP a parent table referenced by a FOREIGN KEY constraint; this error number is less misleading than the previous value HA_ERR_CANNOT_ADD_FOREIGN, but misleading still; we should introduce to 5.0 a proper MySQL error code
Diffstat (limited to 'sql/ha_innodb.cc')
-rw-r--r-- | sql/ha_innodb.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/ha_innodb.cc b/sql/ha_innodb.cc index f149af85b3f..fa9537b3217 100644 --- a/sql/ha_innodb.cc +++ b/sql/ha_innodb.cc @@ -285,7 +285,7 @@ convert_error_code_to_mysql( } else if (error == (int) DB_CANNOT_DROP_CONSTRAINT) { - return(HA_ERR_CANNOT_ADD_FOREIGN); /* TODO: This is a bit + return(HA_ERR_ROW_IS_REFERENCED); /* TODO: This is a bit misleading, a new MySQL error code should be introduced */ } else if (error == (int) DB_COL_APPEARS_TWICE_IN_INDEX) { |