1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +03:00

clarify ER_CANT_DROP_FIELD_OR_KEY

include the dropped object type
This commit is contained in:
Sergei Golubchik
2016-07-02 14:52:20 +02:00
parent 5e3a1ea1e4
commit 5c764a0eb8
17 changed files with 54 additions and 56 deletions

View File

@@ -544,9 +544,9 @@ t2 CREATE TABLE `t2` (
delete from t1;
ERROR 23000: Cannot delete or update a parent row: a foreign key constraint fails (`test`.`t4`, CONSTRAINT `dc` FOREIGN KEY (`a`) REFERENCES `t1` (`a`))
drop index dc on t4;
ERROR 42000: Can't DROP `dc`; check that it exists
ERROR 42000: Can't DROP INDEX `dc`; check that it exists
alter table t3 drop foreign key dc;
ERROR 42000: Can't DROP `dc`; check that it exists
ERROR 42000: Can't DROP FOREIGN KEY `dc`; check that it exists
alter table t4 drop foreign key dc;
affected rows: 0
info: Records: 0 Duplicates: 0 Warnings: 0