summaryrefslogtreecommitdiff
path: root/mysql-test/r/delete.result
diff options
context:
space:
mode:
authorram@gw.mysql.r18.ru <>2004-10-01 16:23:54 +0500
committerram@gw.mysql.r18.ru <>2004-10-01 16:23:54 +0500
commit4ec50dc4d7b216489eda1da5d0053dad30fd738f (patch)
tree6b8e8f20338796d2bc1824b13e295b5dfa3b81ca /mysql-test/r/delete.result
parent476705df18d63c2b629f46c317fb0f7191d3a21e (diff)
downloadmariadb-git-4ec50dc4d7b216489eda1da5d0053dad30fd738f.tar.gz
delete.result, delete.test:
A fix (bug #5733: Table handler error with self-join multi-table DELETE). records.cc: A fix (bug #5733: Table handler error with self-join multi-table DELETE).
Diffstat (limited to 'mysql-test/r/delete.result')
-rw-r--r--mysql-test/r/delete.result11
1 files changed, 11 insertions, 0 deletions
diff --git a/mysql-test/r/delete.result b/mysql-test/r/delete.result
index abc8245e69f..7353e687ae7 100644
--- a/mysql-test/r/delete.result
+++ b/mysql-test/r/delete.result
@@ -50,3 +50,14 @@ select count(*) from t1;
count(*)
0
drop table t1;
+create table t1 (a int not null auto_increment primary key, b char(32));
+insert into t1 (b) values ('apple'), ('apple');
+select * from t1;
+a b
+1 apple
+2 apple
+delete t1 from t1, t1 as t2 where t1.b = t2.b and t1.a > t2.a;
+select * from t1;
+a b
+1 apple
+drop table t1;