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

Fixed bug in LOCK TABLE + DROP TABLE when other thread was waiting for a table that was locked bug not droped

This commit is contained in:
monty@narttu.mysql.fi
2003-03-04 12:22:35 +02:00
parent 065bcf92fb
commit 2a7dfa172c
11 changed files with 144 additions and 15 deletions

View File

@@ -1,4 +1,4 @@
drop table if exists t1;
drop table if exists t1,t2;
create table t1(n int);
insert into t1 values (1);
lock tables t1 write;
@@ -17,3 +17,10 @@ unlock tables;
n
1
drop table t1;
create table t1 (a int);
create table t2 (a int);
lock table t1 write, t2 write;
insert t1 select * from t2;
drop table t2;
Table 'test.t2' doesn't exist
drop table t1;