diff options
author | unknown <sergefp@mysql.com> | 2004-12-11 15:55:50 +0300 |
---|---|---|
committer | unknown <sergefp@mysql.com> | 2004-12-11 15:55:50 +0300 |
commit | c77391b94fd94dd094b40035177fcaa678c9f3ee (patch) | |
tree | 6a05615bea4b44c8dd83626b5770f4b8f1825bb2 /mysql-test/t/multi_update.test | |
parent | da6a5f6ec095b88fb9d0bf63a4d9e4675f1450a8 (diff) | |
parent | 8e4251dd855e81215281b958e97a3dc6b9153a4b (diff) | |
download | mariadb-git-c77391b94fd94dd094b40035177fcaa678c9f3ee.tar.gz |
Fix for BUG#5837 merged from 4.0
sql/sql_select.cc:
Auto merged
sql/table.h:
Auto merged
Diffstat (limited to 'mysql-test/t/multi_update.test')
-rw-r--r-- | mysql-test/t/multi_update.test | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/mysql-test/t/multi_update.test b/mysql-test/t/multi_update.test index e2aebd014f8..005ce74db83 100644 --- a/mysql-test/t/multi_update.test +++ b/mysql-test/t/multi_update.test @@ -431,3 +431,12 @@ update t1,t2 set t1.col1 = (select max(col1) from t1) where t1.col1 = t2.col1; -- error 1093 delete t1 from t1,t2 where t1.col1 < (select max(col1) from t1) and t1.col1 = t2.col1; drop table t1,t2; + +# Test for BUG#5837 - delete with outer join and const tables +drop table if exists t2, t1; +create table t1(aclid bigint not null primary key, status tinyint(1) not null ) type = innodb; +create table t2(refid bigint not null primary key, aclid bigint, index idx_acl(aclid) )type = innodb; +insert into t2 values(1,null); +delete t2, t1 from t2 as a left join t1 as b on (a.aclid=b.aclid) where a.refid='1'; +drop table t1, t2; + |