diff options
author | acurtis@xiphis.org <> | 2005-05-24 13:40:25 +0100 |
---|---|---|
committer | acurtis@xiphis.org <> | 2005-05-24 13:40:25 +0100 |
commit | 565c20ecbf653df5096059c4c66c47de10554995 (patch) | |
tree | 852dd6bc390f62fb86358be889910c10529b51ae /mysql-test/t | |
parent | 93565c8e7de218bf8c8316cc3a1d862cb33a948b (diff) | |
parent | 72f9abbf76030ff9a7f6dd96696419e34302ea14 (diff) | |
download | mariadb-git-565c20ecbf653df5096059c4c66c47de10554995.tar.gz |
Merge acurtis@bk-internal.mysql.com:/home/bk/mysql-4.1
into xiphis.org:/usr/home/antony/work2/p3-bug7241.5
Diffstat (limited to 'mysql-test/t')
-rw-r--r-- | mysql-test/t/lock.test | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/mysql-test/t/lock.test b/mysql-test/t/lock.test index 26fc4e32bda..261c01b405c 100644 --- a/mysql-test/t/lock.test +++ b/mysql-test/t/lock.test @@ -59,3 +59,17 @@ unlock tables; lock tables t1 write, t1 as t1_alias read; insert into t1 select index1,nr from t1 as t1_alias; drop table t1,t2; + +# +# Bug7241 - Invalid response when DELETE .. USING and LOCK TABLES used. +# +create table t1 ( a int(11) not null auto_increment, primary key(a)); +create table t2 ( a int(11) not null auto_increment, primary key(a)); +lock tables t1 write, t2 read; +delete from t1 using t1,t2 where t1.a=t2.a; +delete t1 from t1,t2 where t1.a=t2.a; +--error 1099 +delete from t2 using t1,t2 where t1.a=t2.a; +--error 1099 +delete t2 from t1,t2 where t1.a=t2.a; +drop table t1,t2; |