diff options
author | Georgi Kodinov <kgeorge@mysql.com> | 2008-07-31 12:50:24 +0300 |
---|---|---|
committer | Georgi Kodinov <kgeorge@mysql.com> | 2008-07-31 12:50:24 +0300 |
commit | a3cd2e2dab67a8d4abbd3c13e2455296a3304c56 (patch) | |
tree | 2e7e23931eb91a7bab8ab8e7eb00c76c31801859 /mysql-test/r/subselect.result | |
parent | 686ced5367e6c76ecc8d874a5c8b2137b45e769a (diff) | |
parent | b19155258e5e9ae40735c71234277dfc05092ec4 (diff) | |
download | mariadb-git-a3cd2e2dab67a8d4abbd3c13e2455296a3304c56.tar.gz |
merged 34159 and 37662 5.0-bugteam->5.1-bugteam
Diffstat (limited to 'mysql-test/r/subselect.result')
-rw-r--r-- | mysql-test/r/subselect.result | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/mysql-test/r/subselect.result b/mysql-test/r/subselect.result index da512cd0a4f..1d4a05539d4 100644 --- a/mysql-test/r/subselect.result +++ b/mysql-test/r/subselect.result @@ -4398,4 +4398,15 @@ INSERT INTO t1 VALUES (1), (3); SELECT * FROM t2 WHERE b NOT IN (SELECT max(t.c) FROM t1, t1 t WHERE t.c>10); a b DROP TABLE t1,t2; -End of 5.0 tests. +CREATE TABLE t1(pk int PRIMARY KEY, a int, INDEX idx(a)); +INSERT INTO t1 VALUES (1, 10), (3, 30), (2, 20); +CREATE TABLE t2(pk int PRIMARY KEY, a int, b int, INDEX idxa(a)); +INSERT INTO t2 VALUES (2, 20, 700), (1, 10, 200), (4, 10, 100); +SELECT * FROM t1 +WHERE EXISTS (SELECT DISTINCT a FROM t2 WHERE t1.a < t2.a ORDER BY b); +pk a +1 10 +3 30 +2 20 +DROP TABLE t1,t2; +End of 5.1 tests. |