diff options
author | unknown <ram@gw.mysql.r18.ru> | 2004-10-01 16:23:54 +0500 |
---|---|---|
committer | unknown <ram@gw.mysql.r18.ru> | 2004-10-01 16:23:54 +0500 |
commit | dc3f3ce69430ed1608c0134da7a7e95f527c3d7c (patch) | |
tree | 6b8e8f20338796d2bc1824b13e295b5dfa3b81ca /mysql-test | |
parent | a8cbb00d5c61db88c06ce4a58004a034bc70a45f (diff) | |
download | mariadb-git-dc3f3ce69430ed1608c0134da7a7e95f527c3d7c.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).
sql/records.cc:
]A fix (bug #5733: Table handler error with self-join multi-table DELETE).
mysql-test/t/delete.test:
A fix (bug #5733: Table handler error with self-join multi-table DELETE).
mysql-test/r/delete.result:
A fix (bug #5733: Table handler error with self-join multi-table DELETE).
Diffstat (limited to 'mysql-test')
-rw-r--r-- | mysql-test/r/delete.result | 11 | ||||
-rw-r--r-- | mysql-test/t/delete.test | 10 |
2 files changed, 21 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; diff --git a/mysql-test/t/delete.test b/mysql-test/t/delete.test index 904d959d148..07cb9155b3f 100644 --- a/mysql-test/t/delete.test +++ b/mysql-test/t/delete.test @@ -61,3 +61,13 @@ select count(*) from t1; drop table t1; +# +# Bug #5733: Table handler error with self-join multi-table DELETE +# + +create table t1 (a int not null auto_increment primary key, b char(32)); +insert into t1 (b) values ('apple'), ('apple'); +select * from t1; +delete t1 from t1, t1 as t2 where t1.b = t2.b and t1.a > t2.a; +select * from t1; +drop table t1; |