1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

MDEV-21889 Typo fix: ER_KEY_DOES_NOT_EXISTS

libmariadb revision updated.
This commit is contained in:
Aleksey Midenkov
2020-04-04 00:52:54 +03:00
parent d2c366c6fb
commit 6fb3e83d74
12 changed files with 54 additions and 54 deletions

View File

@ -65,12 +65,12 @@ ALTER TABLE t RENAME INDEX i1 TO GEN_CLUST_INDEX;
# Index creation on non-existing columns will not be tested.
ALTER TABLE t RENAME INDEX i1 TO i1;
-- error ER_KEY_DOES_NOT_EXITS
-- error ER_KEY_DOES_NOT_EXISTS
ALTER TABLE t RENAME INDEX aa TO aa;
-- echo # combination: aaaa
# drop/add existing, null rename and drop the same
-- error ER_KEY_DOES_NOT_EXITS
-- error ER_KEY_DOES_NOT_EXISTS
ALTER TABLE t ADD INDEX i4(f), DROP INDEX i4, RENAME INDEX i4 TO i4;
-- echo # combination: aabb
@ -78,7 +78,7 @@ ALTER TABLE t ADD INDEX i4(f), DROP INDEX i4, RENAME INDEX i4 TO i4;
ALTER TABLE t ADD INDEX aa(f), DROP INDEX aa, RENAME INDEX i2 TO i2;
-- error ER_CANT_DROP_FIELD_OR_KEY
ALTER TABLE t ADD INDEX aa(f), DROP INDEX aa, RENAME INDEX bb TO bb;
-- error ER_KEY_DOES_NOT_EXITS
-- error ER_KEY_DOES_NOT_EXISTS
ALTER TABLE t ADD INDEX i1(f), DROP INDEX i1, RENAME INDEX bb TO bb;
-- enable_info
@ -96,7 +96,7 @@ DROP TABLE t;
ALTER TABLE t ADD INDEX aa(f), DROP INDEX bb, RENAME INDEX cc TO cc;
-- error ER_CANT_DROP_FIELD_OR_KEY
ALTER TABLE t ADD INDEX aa(f), DROP INDEX bb, RENAME INDEX i3 TO i3;
-- error ER_KEY_DOES_NOT_EXITS
-- error ER_KEY_DOES_NOT_EXISTS
ALTER TABLE t ADD INDEX aa(f), DROP INDEX i2, RENAME INDEX cc TO cc;
# rename existing (succeeds)
@ -111,7 +111,7 @@ DROP TABLE t;
-- echo # combination: abaa
-- error ER_KEY_DOES_NOT_EXITS
-- error ER_KEY_DOES_NOT_EXISTS
ALTER TABLE t ADD INDEX aa(f), DROP INDEX i1, RENAME INDEX aa TO aa;
-- error ER_DUP_KEYNAME
ALTER TABLE t ADD INDEX i1(f), DROP INDEX i2, RENAME INDEX i1 TO i1;
@ -122,9 +122,9 @@ ALTER TABLE t ADD INDEX aa(f), DROP INDEX bb, RENAME INDEX aa TO aa;
-- echo # combination: baaa
-- error ER_KEY_DOES_NOT_EXITS
-- error ER_KEY_DOES_NOT_EXISTS
ALTER TABLE t ADD INDEX i2(f), DROP INDEX i1, RENAME INDEX i1 TO i1;
-- error ER_KEY_DOES_NOT_EXITS
-- error ER_KEY_DOES_NOT_EXISTS
ALTER TABLE t ADD INDEX bb(f), DROP INDEX i1, RENAME INDEX i1 TO i1;
-- error ER_CANT_DROP_FIELD_OR_KEY
ALTER TABLE t ADD INDEX i2(f), DROP INDEX aa, RENAME INDEX aa TO aa;
@ -136,9 +136,9 @@ ALTER TABLE t ADD INDEX bb(f), DROP INDEX aa, RENAME INDEX aa TO aa;
# a.k.a. aaaa abba cabc aaba abaa
# the case w=y (ADD w, RENAME w to z) may succeed, as seen below
-- error ER_KEY_DOES_NOT_EXITS
-- error ER_KEY_DOES_NOT_EXISTS
ALTER TABLE t ADD INDEX aa(f), RENAME INDEX aa TO bb;
-- error ER_KEY_DOES_NOT_EXITS
-- error ER_KEY_DOES_NOT_EXISTS
ALTER TABLE t ADD INDEX aa(f), RENAME INDEX bb TO aa;
-- error ER_DUP_KEYNAME
ALTER TABLE t ADD INDEX aa(f), RENAME INDEX i2 TO aa;
@ -155,9 +155,9 @@ DROP TABLE t;
-- echo # combination: abba
-- error ER_KEY_DOES_NOT_EXITS
-- error ER_KEY_DOES_NOT_EXISTS
ALTER TABLE t ADD INDEX i1(f), DROP INDEX i2, RENAME INDEX i2 TO i1;
-- error ER_KEY_DOES_NOT_EXITS
-- error ER_KEY_DOES_NOT_EXISTS
ALTER TABLE t ADD INDEX aa(f), DROP INDEX i2, RENAME INDEX i2 TO aa;
-- error ER_CANT_DROP_FIELD_OR_KEY
ALTER TABLE t ADD INDEX i1(f), DROP INDEX bb, RENAME INDEX bb TO i1;
@ -170,7 +170,7 @@ ALTER TABLE t ADD INDEX aa(f), DROP INDEX bb, RENAME INDEX bb TO aa;
ALTER TABLE t ADD INDEX i3(f), DROP INDEX i1, RENAME INDEX i2 TO i3;
-- error ER_CANT_DROP_FIELD_OR_KEY
ALTER TABLE t ADD INDEX i3(f), DROP INDEX aa, RENAME INDEX i2 TO i3;
-- error ER_KEY_DOES_NOT_EXITS
-- error ER_KEY_DOES_NOT_EXISTS
ALTER TABLE t ADD INDEX i3(f), DROP INDEX i1, RENAME INDEX bb TO i3;
-- error ER_CANT_DROP_FIELD_OR_KEY
ALTER TABLE t ADD INDEX i3(f), DROP INDEX aa, RENAME INDEX bb TO i3;
@ -179,7 +179,7 @@ ALTER TABLE t ADD INDEX i3(f), DROP INDEX aa, RENAME INDEX bb TO i3;
ALTER TABLE t ADD INDEX cc(f), DROP INDEX i1, RENAME INDEX i2 TO cc;
-- error ER_CANT_DROP_FIELD_OR_KEY
ALTER TABLE t ADD INDEX cc(f), DROP INDEX aa, RENAME INDEX i2 TO cc;
-- error ER_KEY_DOES_NOT_EXITS
-- error ER_KEY_DOES_NOT_EXISTS
ALTER TABLE t ADD INDEX cc(f), DROP INDEX i1, RENAME INDEX bb TO cc;
-- error ER_CANT_DROP_FIELD_OR_KEY
ALTER TABLE t ADD INDEX cc(f), DROP INDEX aa, RENAME INDEX bb TO cc;
@ -189,7 +189,7 @@ ALTER TABLE t ADD INDEX cc(f), DROP INDEX aa, RENAME INDEX bb TO cc;
# a.k.a. aaaa abba accb aaab baaa
# rename and drop the same
-- error ER_KEY_DOES_NOT_EXITS
-- error ER_KEY_DOES_NOT_EXISTS
ALTER TABLE t DROP INDEX i1, RENAME INDEX i1 TO bb;
# drop non-existing
-- error ER_CANT_DROP_FIELD_OR_KEY
@ -209,9 +209,9 @@ DROP TABLE t;
-- echo # combination: accb
-- error ER_KEY_DOES_NOT_EXITS
-- error ER_KEY_DOES_NOT_EXISTS
ALTER TABLE t ADD INDEX i1(f), DROP INDEX i3, RENAME INDEX i3 TO i2;
-- error ER_KEY_DOES_NOT_EXITS
-- error ER_KEY_DOES_NOT_EXISTS
ALTER TABLE t ADD INDEX i1(f), DROP INDEX i3, RENAME INDEX i3 TO bb;
-- error ER_CANT_DROP_FIELD_OR_KEY
ALTER TABLE t ADD INDEX i1(f), DROP INDEX cc, RENAME INDEX cc TO i2;
@ -224,11 +224,11 @@ ALTER TABLE t ADD INDEX aa(f), DROP INDEX cc, RENAME INDEX cc TO bb;
-- echo # combination: aaab
-- error ER_KEY_DOES_NOT_EXITS
-- error ER_KEY_DOES_NOT_EXISTS
ALTER TABLE t ADD INDEX i1(f), DROP INDEX i1, RENAME INDEX i1 TO i2;
-- error ER_KEY_DOES_NOT_EXITS
-- error ER_KEY_DOES_NOT_EXISTS
ALTER TABLE t ADD INDEX i1(f), DROP INDEX i1, RENAME INDEX i1 TO bb;
-- error ER_KEY_DOES_NOT_EXITS
-- error ER_KEY_DOES_NOT_EXISTS
ALTER TABLE t ADD INDEX i1(f), DROP INDEX i1, RENAME INDEX i1 TO i2;
-- error ER_CANT_DROP_FIELD_OR_KEY
ALTER TABLE t ADD INDEX aa(f), DROP INDEX aa, RENAME INDEX aa TO bb;
@ -237,13 +237,13 @@ ALTER TABLE t ADD INDEX aa(f), DROP INDEX aa, RENAME INDEX aa TO bb;
-- echo # combination: abcd
-- error ER_KEY_DOES_NOT_EXITS
-- error ER_KEY_DOES_NOT_EXISTS
ALTER TABLE t ADD INDEX i1(f), DROP INDEX i2, RENAME INDEX cc TO i4;
-- error ER_KEY_DOES_NOT_EXITS
-- error ER_KEY_DOES_NOT_EXISTS
ALTER TABLE t ADD INDEX i1(f), DROP INDEX i2, RENAME INDEX cc TO dd;
-- error ER_KEY_DOES_NOT_EXITS
-- error ER_KEY_DOES_NOT_EXISTS
ALTER TABLE t ADD INDEX aa(f), DROP INDEX i2, RENAME INDEX cc TO i4;
-- error ER_KEY_DOES_NOT_EXITS
-- error ER_KEY_DOES_NOT_EXISTS
ALTER TABLE t ADD INDEX aa(f), DROP INDEX i2, RENAME INDEX cc TO dd;
# add existing, rename to existing
@ -278,7 +278,7 @@ DROP TABLE t;
-- error ER_CANT_DROP_FIELD_OR_KEY
ALTER TABLE t ADD INDEX i1(f), DROP INDEX bb, RENAME INDEX i1 TO bb;
-- error ER_KEY_DOES_NOT_EXITS
-- error ER_KEY_DOES_NOT_EXISTS
ALTER TABLE t ADD INDEX aa(f), DROP INDEX i2, RENAME INDEX aa TO i2;
-- error ER_CANT_DROP_FIELD_OR_KEY
ALTER TABLE t ADD INDEX aa(f), DROP INDEX bb, RENAME INDEX aa TO bb;
@ -293,9 +293,9 @@ ALTER TABLE t ADD INDEX aa(f), DROP INDEX cc, RENAME INDEX i2 TO cc;
ALTER TABLE t ADD INDEX i1(f), DROP INDEX cc, RENAME INDEX bb TO cc;
-- error ER_CANT_DROP_FIELD_OR_KEY
ALTER TABLE t ADD INDEX aa(f), DROP INDEX cc, RENAME INDEX bb TO cc;
-- error ER_KEY_DOES_NOT_EXITS
-- error ER_KEY_DOES_NOT_EXISTS
ALTER TABLE t ADD INDEX i1(f), DROP INDEX i3, RENAME INDEX bb TO i3;
-- error ER_KEY_DOES_NOT_EXITS
-- error ER_KEY_DOES_NOT_EXISTS
ALTER TABLE t ADD INDEX aa(f), DROP INDEX i3, RENAME INDEX bb TO i3;
# add existing
@ -313,13 +313,13 @@ DROP TABLE t;
-- echo # combination: cacb
-- error ER_KEY_DOES_NOT_EXITS
-- error ER_KEY_DOES_NOT_EXISTS
ALTER TABLE t ADD INDEX cc(f), DROP INDEX i1, RENAME INDEX cc TO i2;
-- error ER_CANT_DROP_FIELD_OR_KEY
ALTER TABLE t ADD INDEX cc(f), DROP INDEX aa, RENAME INDEX cc TO i2;
-- error ER_CANT_DROP_FIELD_OR_KEY
ALTER TABLE t ADD INDEX cc(f), DROP INDEX aa, RENAME INDEX cc TO bb;
-- error ER_KEY_DOES_NOT_EXITS
-- error ER_KEY_DOES_NOT_EXISTS
ALTER TABLE t ADD INDEX cc(f), DROP INDEX i1, RENAME INDEX cc TO bb;
-- error ER_DUP_KEYNAME
@ -378,7 +378,7 @@ DROP TABLE t;
-- error ER_DUP_KEYNAME
ALTER TABLE t RENAME INDEX i1 TO i2;
-- error ER_KEY_DOES_NOT_EXITS
-- error ER_KEY_DOES_NOT_EXISTS
ALTER TABLE t RENAME INDEX foo TO i1;
# Test ADD INDEX, RENAME INDEX
@ -406,7 +406,7 @@ ALTER TABLE t ADD INDEX foo (f), RENAME INDEX i1 TO foo;
# Test ADD INDEX, RENAME INDEX, DROP INDEX
-- error ER_KEY_DOES_NOT_EXITS
-- error ER_KEY_DOES_NOT_EXISTS
ALTER TABLE t ADD INDEX i1 (f), RENAME INDEX i1 TO foo, DROP INDEX i1;
-- error ER_CANT_DROP_FIELD_OR_KEY
@ -422,10 +422,10 @@ ALTER TABLE t ADD INDEX foo (f), RENAME INDEX foo TO bar, DROP INDEX foo;
-- error ER_DUP_KEYNAME
ALTER TABLE t RENAME INDEX i1 TO x, RENAME INDEX i2 TO x;
-- error ER_KEY_DOES_NOT_EXITS
-- error ER_KEY_DOES_NOT_EXISTS
ALTER TABLE t RENAME INDEX i1 TO x, RENAME INDEX i1 TO y;
-- error ER_KEY_DOES_NOT_EXITS
-- error ER_KEY_DOES_NOT_EXISTS
ALTER TABLE t RENAME INDEX i1 TO x, RENAME INDEX i1 TO x;
# show that the table did not change after all the erroneous ALTERs