mirror of
https://github.com/MariaDB/server.git
synced 2026-05-15 19:37:16 +02:00
Add a test case for Bug#18884 "lock table + global read lock = crash"
(the bug itself is not repeatable any more). mysql-test/r/lock.result: Update test results (Bug#18884) mysql-test/t/lock.test: Add a test case for Bug#18884 "lock table + global read lock = crash"
This commit is contained in:
parent
60403d32f1
commit
b72a72aa0b
2 changed files with 22 additions and 0 deletions
|
|
@ -68,3 +68,10 @@ ERROR HY000: Table 't2' was locked with a READ lock and can't be updated
|
|||
delete t2 from t1,t2 where t1.a=t2.a;
|
||||
ERROR HY000: Table 't2' was locked with a READ lock and can't be updated
|
||||
drop table t1,t2;
|
||||
drop table if exists t1;
|
||||
create table t1 (a int);
|
||||
lock table t1 write;
|
||||
flush tables with read lock;
|
||||
ERROR HY000: Can't execute the given command because you have active locked tables or an active transaction
|
||||
unlock tables;
|
||||
drop table t1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue