1
drop table if exists t1,t2;
2
create table t1 ( n int auto_increment primary key);
4
insert into t1 values(NULL);
7
Table Op Msg_type Msg_text
8
test.t1 check status OK
9
lock tables t1 write, t1 as t0 read;
10
insert into t1 values(NULL);
13
Table Op Msg_type Msg_text
14
test.t1 check status OK
15
lock tables t1 write, t1 as t0 read, t1 as t2 read;
16
insert into t1 values(NULL);
19
Table Op Msg_type Msg_text
20
test.t1 check status OK
21
lock tables t1 write, t1 as t0 write, t1 as t2 read;
22
insert into t1 values(NULL);
25
Table Op Msg_type Msg_text
26
test.t1 check status OK
27
lock tables t1 write, t1 as t0 write, t1 as t2 read, t1 as t3 read;
28
insert into t1 values(NULL);
31
Table Op Msg_type Msg_text
32
test.t1 check status OK
33
lock tables t1 write, t1 as t0 write, t1 as t2 write;
34
insert into t1 values(NULL);
37
Table Op Msg_type Msg_text
38
test.t1 check status OK
40
CREATE TABLE t1 (a int);
41
CREATE TABLE t2 (a int);
42
lock tables t1 write,t1 as b write, t2 write, t2 as c read;
44
CREATE TABLE t1 (a int);
45
CREATE TABLE t2 (a int);
46
lock tables t1 write,t1 as b write, t2 write, t2 as c read;
49
create temporary table t1(f1 int);
51
insert into t1 values (1);
53
Field Type Null Key Default Extra
55
insert into t1 values(2);