summaryrefslogtreecommitdiff
path: root/mysql-test/t/derived.test
diff options
context:
space:
mode:
authorunknown <hf@deer.(none)>2003-11-21 11:58:28 +0400
committerunknown <hf@deer.(none)>2003-11-21 11:58:28 +0400
commit95c6226af717ed5fad0ea013d4c75433743c1156 (patch)
tree1958030cb2e4fd7b1e8695db55ab95957c4c1eab /mysql-test/t/derived.test
parent8848cea28797c2e08898bbcb782b6c830ee3f42e (diff)
parente2661bdbba9d81f00fb6ef5bdfeee343b3496ee2 (diff)
downloadmariadb-git-95c6226af717ed5fad0ea013d4c75433743c1156.tar.gz
Merge abotchkov@bk-internal.mysql.com:/home/bk/mysql-4.1
into deer.(none):/home/hf/work/mysql-4.1.1727 mysql-test/r/derived.result: Auto merged mysql-test/t/derived.test: Auto merged sql/sql_lex.cc: Auto merged
Diffstat (limited to 'mysql-test/t/derived.test')
-rw-r--r--mysql-test/t/derived.test6
1 files changed, 6 insertions, 0 deletions
diff --git a/mysql-test/t/derived.test b/mysql-test/t/derived.test
index ee50ffda476..caf673d95c1 100644
--- a/mysql-test/t/derived.test
+++ b/mysql-test/t/derived.test
@@ -132,3 +132,9 @@ insert into t1 VALUES(1,1,1), (2,2,1);
select count(*) from t1 INNER JOIN (SELECT A.E1, A.E2, A.E3 FROM t1 AS A WHERE A.E3 = (SELECT MAX(B.E3) FROM t1 AS B WHERE A.E2 = B.E2)) AS THEMAX ON t1.E1 = THEMAX.E2 AND t1.E1 = t1.E2;
explain select count(*) from t1 INNER JOIN (SELECT A.E1, A.E2, A.E3 FROM t1 AS A WHERE A.E3 = (SELECT MAX(B.E3) FROM t1 AS B WHERE A.E2 = B.E2)) AS THEMAX ON t1.E1 = THEMAX.E2 AND t1.E1 = t1.E2;
drop table t1;
+
+create table t1 (a int);
+insert into t1 values (1),(2);
+select * from ( select * from t1 union select * from t1) a,(select * from t1 union select * from t1) b;
+explain select * from ( select * from t1 union select * from t1) a,(select * from t1 union select * from t1) b;
+drop table t1;