diff options
author | monty@mashka.mysql.fi <> | 2002-12-05 19:38:42 +0200 |
---|---|---|
committer | monty@mashka.mysql.fi <> | 2002-12-05 19:38:42 +0200 |
commit | 859b68847666823baa328c5c7f3da96787807bb3 (patch) | |
tree | 56f9dc35fe3c9e6c4f341e577ff3db68855d9e81 /mysql-test/t/select.test | |
parent | 564487d7c00098e8a37c8e675197414667685452 (diff) | |
parent | 496a0e1630f9dc4047fb5244cb87ee5ca03b409e (diff) | |
download | mariadb-git-859b68847666823baa328c5c7f3da96787807bb3.tar.gz |
Merge with 4.0.6
Diffstat (limited to 'mysql-test/t/select.test')
-rw-r--r-- | mysql-test/t/select.test | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/mysql-test/t/select.test b/mysql-test/t/select.test index 34ad496f285..64287dc4170 100644 --- a/mysql-test/t/select.test +++ b/mysql-test/t/select.test @@ -1799,5 +1799,11 @@ select * from t1 natural right join (t1 as t2 left join t1 as t3 using (a)); # natural join select * from t1 natural join (t1 as t2 left join t1 as t3 using (a)); select * from (t1 as t2 left join t1 as t3 using (a)) natural join t1; - drop table t1; +drop table if exists t1,t2; +CREATE TABLE t1 ( aa char(2), id int(11) NOT NULL auto_increment, t2_id int(11) NOT NULL default '0', PRIMARY KEY (id), KEY replace_id (t2_id)) TYPE=MyISAM; +INSERT INTO t1 VALUES ("1",8264,2506),("2",8299,2517),("3",8301,2518),("4",8302,2519),("5",8303,2520),("6",8304,2521),("7",8305,2522); +CREATE TABLE t2 ( id int(11) NOT NULL auto_increment, PRIMARY KEY (id)) TYPE=MyISAM; +INSERT INTO t2 VALUES (2517), (2518), (2519), (2520), (2521), (2522); +select * from t1, t2 WHERE t1.t2_id = t2.id and t1.t2_id > 0 order by t1.id LIMIT 0, 5; +drop table if exists t1,t2; |