~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/t/drop.test

  • Committer: Monty Taylor
  • Date: 2009-06-09 20:28:16 UTC
  • mfrom: (1058 staging)
  • mto: This revision was merged to the branch mainline in revision 1060.
  • Revision ID: mordred@inaugust.com-20090609202816-jk2w5vgkvejn8nrd
MergedĀ fromĀ trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
100
100
drop table if exists t1;
101
101
--enable_warnings
102
102
create table t1 (i int);
103
 
lock tables t1 read;
104
103
create database mysqltest;
105
104
connect (addconroot1, localhost, root,,);
106
105
--send drop table t1
112
111
--send drop database mysqltest
113
112
connection default;
114
113
select 1;
115
 
unlock tables;
116
114
connection addconroot1;
117
115
--reap
118
116
connection addconroot2;
121
119
disconnect addconroot2;
122
120
connection default;
123
121
 
124
 
#
125
 
# Bug#25858 Some DROP TABLE under LOCK TABLES can cause deadlocks
126
 
#
127
 
 
128
 
--disable_warnings
129
 
drop table if exists t1,t2;
130
 
--enable_warnings
131
 
create table t1 (a int);
132
 
create table t2 (a int);
133
 
lock table t1 read;
134
 
--error ER_TABLE_NOT_LOCKED
135
 
drop table t2;
136
 
--error ER_TABLE_NOT_LOCKED_FOR_WRITE
137
 
drop table t1;
138
 
unlock tables;
139
 
drop table t1,t2;
140
 
connect (addconroot, localhost, root,,);
141
 
connection default;
142
 
create table t1 (i int);
143
 
create table t2 (i int);
144
 
lock tables t1 read;
145
 
connection addconroot;
146
 
lock tables t2 read;
147
 
--error ER_TABLE_NOT_LOCKED
148
 
drop table t1;
149
 
connection default;
150
 
--error ER_TABLE_NOT_LOCKED_FOR_WRITE
151
 
drop table t1,t2;
152
 
disconnect addconroot;
153
 
connection default;
154
 
unlock tables;
155
 
drop table t1,t2;
156
 
 
157
122
--echo End of 5.0 tests
158
123
 
159
124
#