~drizzle-trunk/drizzle/development

724.1.1 by Brian Aker
Adding in missing flush results.
1
drop table if exists t1,t2;
2
drop database if exists mysqltest;
3
create temporary table t1(n int not null primary key);
4
create table t2(n int);
5
insert into t2 values(3);
6
select * from t1;
7
n
8
3
9
flush tables with read lock;
10
drop table t2;
11
ERROR HY000: Can't execute the query because you have a conflicting read lock
12
drop table t2;
13
unlock tables;
14
create database mysqltest;
15
create table mysqltest.t1(n int);
16
insert into mysqltest.t1 values (23);
17
flush tables with read lock;
18
drop database mysqltest;
19
select * from mysqltest.t1;
20
n
21
23
22
unlock tables;
23
create table t1 (c1 int);
24
lock table t1 write;
25
flush tables with read lock;
26
ERROR HY000: Can't execute the given command because you have active locked tables or an active transaction
27
lock table t1 read;
28
flush tables with read lock;
29
lock table t1 write;
30
ERROR HY000: Can't execute the query because you have a conflicting read lock
31
lock table t1 read;
32
lock table t1 write;
33
ERROR HY000: Can't execute the query because you have a conflicting read lock
34
unlock tables;
35
create table t2 (c1 int);
36
create table t3 (c1 int);
37
lock table t1 read, t2 read, t3 write;
38
flush tables with read lock;
39
ERROR HY000: Can't execute the given command because you have active locked tables or an active transaction
40
lock table t1 read, t2 read, t3 read;
41
flush tables with read lock;
42
unlock tables;
43
drop table t1, t2, t3;
44
create table t1 (c1 int);
45
create table t2 (c1 int);
46
lock table t1 write;
47
flush tables with read lock;
48
insert into t2 values(1);
49
unlock tables;
50
drop table t1, t2;
51
select benchmark(200, (select sin(1))) > 1000;
52
End of 5.0 tests