summaryrefslogtreecommitdiff
path: root/mysql-test/r/alter_table_online.result
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2016-02-11 12:25:23 +0100
committerSergei Golubchik <serg@mariadb.org>2016-02-15 13:02:21 +0100
commit38b89a61c3ace83b32c079489922a0cae5106b56 (patch)
tree6da9b918888b6ba8479e296d7707cbb37b2c1394 /mysql-test/r/alter_table_online.result
parent3c6b771753d8666120fa3cb81d1586d214d85a58 (diff)
downloadmariadb-git-38b89a61c3ace83b32c079489922a0cae5106b56.tar.gz
MDEV-9103 Altering table comment does a full copy
following InnoDB's logic, altering a comment or a default field's value needs "NO_LOCK", not EXCLUSIVE
Diffstat (limited to 'mysql-test/r/alter_table_online.result')
-rw-r--r--mysql-test/r/alter_table_online.result9
1 files changed, 3 insertions, 6 deletions
diff --git a/mysql-test/r/alter_table_online.result b/mysql-test/r/alter_table_online.result
index 864ad724bc3..db7319cadf1 100644
--- a/mysql-test/r/alter_table_online.result
+++ b/mysql-test/r/alter_table_online.result
@@ -2,15 +2,9 @@ drop table if exists t1,t2,t3;
create table t1 (a int not null primary key, b int, c varchar(80), e enum('a','b'));
insert into t1 (a) values (1),(2),(3);
alter online table t1 modify b int default 5;
-ERROR 0A000: LOCK=NONE/SHARED is not supported for this operation. Try LOCK=EXCLUSIVE.
alter online table t1 change b new_name int;
-ERROR 0A000: LOCK=NONE/SHARED is not supported for this operation. Try LOCK=EXCLUSIVE.
alter online table t1 modify e enum('a','b','c');
-ERROR 0A000: LOCK=NONE/SHARED is not supported for this operation. Try LOCK=EXCLUSIVE.
alter online table t1 comment "new comment";
-ERROR 0A000: LOCK=NONE/SHARED is not supported for this operation. Try LOCK=EXCLUSIVE.
-alter online table t1 rename to t2;
-ERROR 0A000: LOCK=NONE/SHARED is not supported for this operation. Try LOCK=EXCLUSIVE.
alter online table t1 algorithm=INPLACE, lock=NONE;
alter online table t1;
alter table t1 algorithm=INPLACE;
@@ -40,10 +34,13 @@ alter online table t1 add f int;
ERROR 0A000: LOCK=NONE is not supported for this operation. Try LOCK=SHARED.
alter online table t1 engine=memory;
ERROR 0A000: LOCK=NONE is not supported. Reason: COPY algorithm requires a lock. Try LOCK=SHARED.
+alter online table t1 rename to t2;
+ERROR 0A000: LOCK=NONE/SHARED is not supported for this operation. Try LOCK=EXCLUSIVE.
alter table t1 engine=innodb;
alter table t1 add index (b);
alter online table t1 add index c (c);
alter online table t1 drop index b;
+alter online table t1 comment "new comment";
drop table t1;
create temporary table t1 (a int not null primary key, b int, c varchar(80), e enum('a','b'));
insert into t1 (a) values (1),(2),(3);