1
0
mirror of https://github.com/MariaDB/server.git synced 2025-12-24 11:21:21 +03:00

Added test for bug #21281 "Pending write lock is incorrectly removed

when its statement being KILLed". The bug itself was fixed by separate
patch in 5.0 tree.
This commit is contained in:
dlenev@mockturtle.local
2007-08-05 13:55:37 +04:00
parent ec2aeb4fae
commit c3e3a5e188
2 changed files with 45 additions and 0 deletions

View File

@@ -95,3 +95,13 @@ alter table t1 auto_increment=0; alter table t1 auto_increment=0; alter table t1
alter table t1 auto_increment=0; alter table t1 auto_increment=0; alter table t1 auto_increment=0; alter table t1 auto_increment=0; alter table t1 auto_increment=0; //
unlock tables;
drop table t1;
create table t1 (i int);
lock table t1 read;
update t1 set i= 10;;
select * from t1;;
kill query ID;
i
ERROR 70100: Query execution was interrupted
unlock tables;
drop table t1;
End of 5.1 tests