230
230
connection locker;
231
231
# Disable warnings to allow test to run also without InnoDB
232
232
--disable_warnings
233
create table t1 (f1 int(12) not null auto_increment, primary key(f1)) engine=innodb;
233
create table t1 (f1 int not null auto_increment, primary key(f1)) engine=innodb;
234
234
--enable_warnings
235
235
lock tables t1 write;
236
236
connection writer;
257
257
--echo End of 5.0 tests
260
# Bug #21281 "Pending write lock is incorrectly removed when its
261
# statement being KILLed"
263
create table t1 (i int);
267
--send update t1 set i= 10;
270
select count(*) = 1 from information_schema.processlist
271
where state = "Table lock" and info = "update t1 set i= 10";
272
--source include/wait_condition.inc
273
--send select * from t1;
276
select count(*) = 1 from information_schema.processlist
277
where state = "Table lock" and info = "select * from t1";
278
--source include/wait_condition.inc
279
let $ID= `select id from information_schema.processlist where state = "Table lock" and info = "update t1 set i= 10"`;
280
--replace_result $ID ID
285
--error ER_QUERY_INTERRUPTED
293
# Bug#25856 - HANDLER table OPEN in one connection lock DROP TABLE in another one
296
drop table if exists t1;
298
create table t1 (a int) ENGINE=MEMORY;
260
## Bug #21281 "Pending write lock is incorrectly removed when its
261
## statement being KILLed"
263
#create table t1 (i int);
267
#--send update t1 set i= 10;
269
#let $wait_condition=
270
# select count(*) = 1 from information_schema.processlist
271
# where state = "Table lock" and info = "update t1 set i= 10";
272
#--source include/wait_condition.inc
273
#--send select * from t1;
275
#let $wait_condition=
276
# select count(*) = 1 from information_schema.processlist
277
# where state = "Table lock" and info = "select * from t1";
278
#--source include/wait_condition.inc
279
#let $ID= `select id from information_schema.processlist where state = "Table lock" and info = "update t1 set i= 10"`;
280
#--replace_result $ID ID
281
#eval kill query $ID;
285
#--error ER_QUERY_INTERRUPTED
308
293
# Bug#32395 Alter table under a impending global read lock causes a server crash