Debian Codegraph @

mysql-test/suite/innodb/t/innodb_bug44571.test

raw
1 #
2 # Bug#44571 InnoDB Plugin crashes on ADD INDEX
3 # http://bugs.mysql.com/44571
4 # Please also refer to related fix in
5 # http://bugs.mysql.com/47621
6 #
7
8 CREATE TABLE bug44571 (foo INT) ENGINE=InnoDB;
9 ALTER TABLE bug44571 CHANGE foo bar INT;
10 # Create index with the old column name will fail,
11 # because the CHANGE foo bar is successful. And
12 # the column name change would communicate to
13 # InnoDB with the fix from bug #47621
14 -- error ER_KEY_COLUMN_DOES_NOT_EXITS
15 ALTER TABLE bug44571 ADD INDEX bug44571b (foo);
16 # The following create indexes should succeed,
17 # indirectly confirm the CHANGE foo bar is successful.
18 ALTER TABLE bug44571 ADD INDEX bug44571c (bar);
19 DROP INDEX bug44571c ON bug44571;
20 CREATE INDEX bug44571c ON bug44571 (bar);
21 DROP TABLE bug44571;