diff options
author | Georgi Kodinov <joro@sun.com> | 2010-03-17 16:18:46 +0200 |
---|---|---|
committer | Georgi Kodinov <joro@sun.com> | 2010-03-17 16:18:46 +0200 |
commit | ae49d9710b791d1eaf7f552a44067c5108bd8c85 (patch) | |
tree | c961513f5091cd281104b3b42bc23af05c30402a /sql/rpl_utility.h | |
parent | ed92f9154966401934712d123d9d9c6e71e00e3c (diff) | |
download | mariadb-git-ae49d9710b791d1eaf7f552a44067c5108bd8c85.tar.gz |
Bug #49838: DROP INDEX and ADD UNIQUE INDEX for same index may corrupt
definition at engine
If a single ALTER TABLE contains both DROP INDEX and ADD INDEX using
the same index name (a.k.a. index modification) we need to disable
in-place alter table because we can't ask the storage engine to have
two copies of the index with the same name even temporarily (if we
first do the ADD INDEX and then DROP INDEX) and we can't modify
indexes that are needed by e.g. foreign keys if we first do
DROP INDEX and then ADD INDEX.
Fixed the problem by disabling in-place ALTER TABLE for these cases.
Diffstat (limited to 'sql/rpl_utility.h')
0 files changed, 0 insertions, 0 deletions