summaryrefslogtreecommitdiff
path: root/mysql-test/t/lock.test
diff options
context:
space:
mode:
authorunknown <sasha@mysql.sashanet.com>2001-07-13 17:45:14 -0600
committerunknown <sasha@mysql.sashanet.com>2001-07-13 17:45:14 -0600
commit1ce9f19b1f5dd8fe7dfe2946fbe1d0213203a084 (patch)
treea053473c0bde78403409eae409203907dbc8edc4 /mysql-test/t/lock.test
parent959c180b5acbdc16d48a4da62ebb66225a215556 (diff)
downloadmariadb-git-1ce9f19b1f5dd8fe7dfe2946fbe1d0213203a084.tar.gz
updated lock test
mysql-test/r/lock.result: updated result mysql-test/t/lock.test: updated test
Diffstat (limited to 'mysql-test/t/lock.test')
-rw-r--r--mysql-test/t/lock.test16
1 files changed, 16 insertions, 0 deletions
diff --git a/mysql-test/t/lock.test b/mysql-test/t/lock.test
index 677a5a19f6b..1eed6bb91e9 100644
--- a/mysql-test/t/lock.test
+++ b/mysql-test/t/lock.test
@@ -75,3 +75,19 @@ connection reader;
reap;
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;
+