diff options
author | unknown <andrey@example.com> | 2006-11-16 13:46:43 +0100 |
---|---|---|
committer | unknown <andrey@example.com> | 2006-11-16 13:46:43 +0100 |
commit | db42257de8504d78046a6c5227491ce8edaebe29 (patch) | |
tree | 8c99bd1c401bf0c114fa3fb87cddcd3c20c8176c /mysql-test/t/alter_table.test | |
parent | 574902e355362f70e888c57698ec9147f69a6351 (diff) | |
parent | 09fc514bd57be466589a8a4cc119ac34062d983e (diff) | |
download | mariadb-git-db42257de8504d78046a6c5227491ce8edaebe29.tar.gz |
Merge example.com:/work/bug24219/my41
into example.com:/work/bug24219/my50
mysql-test/t/alter_table.test:
Auto merged
sql/sql_table.cc:
manual merge
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 cfa6182543b..7c23a5ca410 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 # |