diff options
author | unknown <andrey@example.com> | 2006-11-16 14:16:32 +0100 |
---|---|---|
committer | unknown <andrey@example.com> | 2006-11-16 14:16:32 +0100 |
commit | 05a2da2c1a92e75043a9cfa76a03b97f1568e5c9 (patch) | |
tree | 578bb9d7027960b61c9581cd5a461d6c4d48b5fd /mysql-test/t/alter_table.test | |
parent | 504d8208511f95de07f0523297e9eea7647b64e3 (diff) | |
parent | d63fa0a4078985e656e4c057583fc572add8d3a5 (diff) | |
download | mariadb-git-05a2da2c1a92e75043a9cfa76a03b97f1568e5c9.tar.gz |
Merge example.com:/work/bug24219/my50
into example.com:/work/bug24219/my51
mysql-test/t/alter_table.test:
Auto merged
sql/sql_table.cc:
Auto merged
mysql-test/r/alter_table.result:
manual merge
Diffstat (limited to 'mysql-test/t/alter_table.test')
-rw-r--r-- | mysql-test/t/alter_table.test | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/mysql-test/t/alter_table.test b/mysql-test/t/alter_table.test index 168d011a2ac..aa2133db9c5 100644 --- a/mysql-test/t/alter_table.test +++ b/mysql-test/t/alter_table.test @@ -402,6 +402,24 @@ alter table test.t1 rename test.t1; use test; drop table t1; +# +# Bug#24219 - ALTER TABLE ... RENAME TO ... , DISABLE KEYS leads to crash +# +--disable_warnings +DROP TABLE IF EXISTS bug24219; +DROP TABLE IF EXISTS bug24219_2; +--enable_warnings + +CREATE TABLE bug24219 (a INT, INDEX(a)); + +SHOW INDEX FROM bug24219; + +ALTER TABLE bug24219 RENAME TO bug24219_2, DISABLE KEYS; + +SHOW INDEX FROM bug24219_2; + +DROP TABLE bug24219_2; + # End of 4.1 tests # |