mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Fix for bug#24219 ALTER TABLE ... RENAME TO ... , DISABLE KEYS leads to crash
There was an improper order of doing chained operations. To the documentor: ENABLE|DISABLE KEYS combined with RENAME TO, and no other ALTER TABLE clause, leads to server crash independent of the presence of indices and data in the table.
This commit is contained in:
@ -392,4 +392,22 @@ 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
|
||||
|
Reference in New Issue
Block a user