diff options
author | Nirbhay Choubey <nirbhay@mariadb.com> | 2014-12-31 20:58:54 -0500 |
---|---|---|
committer | Nirbhay Choubey <nirbhay@mariadb.com> | 2014-12-31 20:58:54 -0500 |
commit | 6f4f8c5f8ae55f6fe05990e047c10309d598eb28 (patch) | |
tree | 934a20e50daa00b80289eb66e1312923953b08c7 /mysql-test/t/alter_table.test | |
parent | 61f73d40cab40994a1baaacc87c9e81d8e335975 (diff) | |
download | mariadb-git-6f4f8c5f8ae55f6fe05990e047c10309d598eb28.tar.gz |
MDEV-7374 : Losing connection to MySQL while running ALTER TABLE
In the special case of ALTER TABLE with >10K rows, wsrep commit
should skip if wsrep is not enabled. Added a test case.
Diffstat (limited to 'mysql-test/t/alter_table.test')
-rw-r--r-- | mysql-test/t/alter_table.test | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/mysql-test/t/alter_table.test b/mysql-test/t/alter_table.test index 416c73009e6..ab1fb4e4c54 100644 --- a/mysql-test/t/alter_table.test +++ b/mysql-test/t/alter_table.test @@ -1687,3 +1687,13 @@ alter table t1 add unique index if not exists idx(i); alter table t1 add unique index if not exists idx(i); show create table t1; DROP TABLE t1; + +--echo # +--echo # MDEV-7374 : Losing connection to MySQL while running ALTER TABLE +--echo # +CREATE TABLE t1(i INT) ENGINE=INNODB; +INSERT INTO t1 VALUES (1),(2),(3),(4),(5),(6),(7),(8); +INSERT INTO t1 SELECT a.* FROM t1 a, t1 b, t1 c, t1 d, t1 e; +ALTER TABLE t1 MODIFY i FLOAT; +DROP TABLE t1; + |