~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/r/lock_multi.result

  • Committer: Brian Aker
  • Date: 2009-01-18 01:49:40 UTC
  • Revision ID: brian@gir-3.local-20090118014940-co9651fk7hla6gqg
Removed unused session param from list_open_tables()

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
drop table if exists t1,t2;
 
2
create table t1(n int);
 
3
insert into t1 values (1);
 
4
lock tables t1 write;
 
5
update low_priority t1 set n = 4;
 
6
select n from t1;
 
7
unlock tables;
 
8
n
 
9
1
 
10
drop table t1;
 
11
create table t1(n int);
 
12
insert into t1 values (1);
 
13
lock tables t1 read;
 
14
update low_priority t1 set n = 4;
 
15
select n from t1;
 
16
n
 
17
1
 
18
unlock tables;
 
19
drop table t1;
 
20
create table t1 (a int, b int);
 
21
create table t2 (c int, d int);
 
22
insert into t1 values(1,1);
 
23
insert into t1 values(2,2);
 
24
insert into t2 values(1,2);
 
25
lock table t1 read;
 
26
update t1,t2 set c=a where b=d;
 
27
select c from t2;
 
28
c
 
29
2
 
30
unlock tables;
 
31
drop table t1;
 
32
drop table t2;
 
33
create table t1 (a int);
 
34
create table t2 (a int);
 
35
lock table t1 write, t2 write;
 
36
insert t1 select * from t2;
 
37
drop table t2;
 
38
ERROR 42S02: Table 'test.t2' doesn't exist
 
39
drop table t1;
 
40
create table t1 (a int);
 
41
create table t2 (a int);
 
42
lock table t1 write, t2 write, t1 as t1_2 write, t2 as t2_2 write;
 
43
insert t1 select * from t2;
 
44
drop table t2;
 
45
ERROR 42S02: Table 'test.t2' doesn't exist
 
46
drop table t1;
 
47
End of 4.1 tests
 
48
create table t1(a int);
 
49
lock tables t1 write;
 
50
show columns from t1;
 
51
Field   Type    Null    Key     Default Extra
 
52
a       int     YES             NULL    
 
53
unlock tables;
 
54
drop table t1;
 
55
CREATE TABLE t1 (c1 int);
 
56
LOCK TABLE t1 WRITE;
 
57
FLUSH TABLES WITH READ LOCK;
 
58
CREATE TABLE t2 (c1 int);
 
59
UNLOCK TABLES;
 
60
UNLOCK TABLES;
 
61
DROP TABLE t1, t2;
 
62
CREATE TABLE t1 (c1 int);
 
63
LOCK TABLE t1 WRITE;
 
64
FLUSH TABLES WITH READ LOCK;
 
65
CREATE TABLE t2 AS SELECT * FROM t1;
 
66
ERROR HY000: Table 't2' was not locked with LOCK TABLES
 
67
UNLOCK TABLES;
 
68
UNLOCK TABLES;
 
69
DROP TABLE t1;
2
70
CREATE DATABASE mysqltest_1;
3
71
FLUSH TABLES WITH READ LOCK;
4
72
DROP DATABASE mysqltest_1;
6
74
ERROR HY000: Can't execute the query because you have a conflicting read lock
7
75
UNLOCK TABLES;
8
76
DROP DATABASE mysqltest_1;
9
 
ERROR HY000: Can't drop schema 'mysqltest_1'; schema doesn't exist
 
77
ERROR HY000: Can't drop database 'mysqltest_1'; database doesn't exist
 
78
create table t1 (f1 int not null auto_increment, primary key(f1)) engine=innodb;
 
79
lock tables t1 write;
 
80
alter table t1 auto_increment=0;
 
81
alter table t1 auto_increment=0;
 
82
unlock tables;
 
83
drop table t1;
 
84
End of 5.0 tests
 
85
drop table if exists t1;
 
86
create table t1 (i int);
 
87
connection: default
 
88
lock tables t1 write;
 
89
connection: flush
 
90
flush tables with read lock;;
 
91
connection: default
 
92
alter table t1 add column j int;
 
93
connection: insert
 
94
insert into t1 values (1,2);;
 
95
connection: default
 
96
unlock tables;
 
97
connection: flush
 
98
select * from t1;
 
99
i       j
 
100
unlock tables;
 
101
select * from t1;
 
102
i       j
 
103
1       2
 
104
drop table t1;
 
105
drop table if exists t1;
 
106
create table t1 (i int);
 
107
connection: default
 
108
lock tables t1 write;
 
109
connection: flush
 
110
flush tables with read lock;;
 
111
connection: default
 
112
flush tables;
 
113
unlock tables;
 
114
drop table t1;
 
115
drop table if exists t1,t2;
 
116
create table t1 (a int);
 
117
flush status;
 
118
lock tables t1 read;
 
119
insert into t1 values(1);
 
120
unlock tables;
 
121
drop table t1;
 
122
select @tlwa < @tlwb;
 
123
@tlwa < @tlwb
 
124
1
10
125
End of 5.1 tests
 
126
drop table if exists t1;
 
127
create table t1 (i int);
 
128
connection: default
 
129
lock tables t1 write;
 
130
connection: flush
 
131
flush tables with read lock;;
 
132
connection: default
 
133
flush tables;
 
134
drop table t1;