Commit 1ce9f19b authored by unknown's avatar unknown

updated lock test


mysql-test/r/lock.result:
  updated result
mysql-test/t/lock.test:
  updated test
parent 959c180b
...@@ -6,3 +6,5 @@ Table Op Msg_type Msg_text ...@@ -6,3 +6,5 @@ Table Op Msg_type Msg_text
test.t2 check error Table 't2' was not locked with LOCK TABLES test.t2 check error Table 't2' was not locked with LOCK TABLES
n n
1 1
n
1
...@@ -75,3 +75,19 @@ connection reader; ...@@ -75,3 +75,19 @@ connection reader;
reap; reap;
drop table t1; drop table t1;
connection locker;
create table t1(n int);
insert into t1 values (1);
lock tables t1 read;
connection writer;
send update low_priority t1 set n = 4;
connection reader;
send select n from t1;
connection locker;
unlock tables;
connection writer;
reap;
connection reader;
reap;
drop table t1;
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment