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
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
ALTER TABLE bug44571 ADD INDEX bug44571b (foo);
15
# The following create indexes should succeed,
16
# indirectly confirm the CHANGE foo bar is successful.
17
ALTER TABLE bug44571 ADD INDEX bug44571c (bar);
18
DROP INDEX bug44571c ON bug44571;
19
CREATE INDEX bug44571c ON bug44571 (bar);