summaryrefslogtreecommitdiff
path: root/mysql-test/t/alter_table_trans.test
blob: 9096a392af4eecca58d63c5b67dc3f12876d583f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#
# Test of alter table with transactional tables
#

--source include/have_innodb.inc
--disable_warnings
drop table if exists t1,t2;
--enable_warnings

#
# This test caused a crash in wait_if_global_read_lock()
#
CREATE TABLE t1 (a INT, INDEX(a)) engine=innodb;
ALTER TABLE t1 RENAME TO t2, DISABLE KEYS;
DROP TABLE t2;