summaryrefslogtreecommitdiff
path: root/mysql-test/t
diff options
context:
space:
mode:
authoracurtis@xiphis.org <>2005-05-24 15:52:48 +0100
committeracurtis@xiphis.org <>2005-05-24 15:52:48 +0100
commit4a77febaabca6c733f0573992886563231ebc4cc (patch)
tree2e12d887aeb0739e493ddae71187746c1ba9ab09 /mysql-test/t
parenta49ccfe6f061912fd256960d4d69cb3802f0acd1 (diff)
parent565c20ecbf653df5096059c4c66c47de10554995 (diff)
downloadmariadb-git-4a77febaabca6c733f0573992886563231ebc4cc.tar.gz
Merge
Diffstat (limited to 'mysql-test/t')
-rw-r--r--mysql-test/t/lock.test14
1 files changed, 14 insertions, 0 deletions
diff --git a/mysql-test/t/lock.test b/mysql-test/t/lock.test
index faa1fa3ac25..127cbb54a88 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;