diff options
author | monty@mysql.com <> | 2005-02-22 15:47:00 +0200 |
---|---|---|
committer | monty@mysql.com <> | 2005-02-22 15:47:00 +0200 |
commit | e2ea35ec673747925780b2ad44f2b3c0a2a7961a (patch) | |
tree | 775f6aaae95a3574b8d285d2433c3797b653e482 /mysql-test/r/derived.result | |
parent | f55e2002484b822851b5ce26e65eb82c0caed5f5 (diff) | |
parent | 5e6ba9dec8f3f82745e657a2f64564ef0c5e2348 (diff) | |
download | mariadb-git-e2ea35ec673747925780b2ad44f2b3c0a2a7961a.tar.gz |
Merge with 4.1
Diffstat (limited to 'mysql-test/r/derived.result')
-rw-r--r-- | mysql-test/r/derived.result | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/mysql-test/r/derived.result b/mysql-test/r/derived.result index 071cb673501..fd6a834c694 100644 --- a/mysql-test/r/derived.result +++ b/mysql-test/r/derived.result @@ -344,3 +344,22 @@ INSERT INTO t1 VALUES ('root','localhost'), ('root','%'); SELECT * FROM (SELECT (SELECT a.a FROM t1 AS a WHERE a.a = b.a) FROM t1 AS b) AS c; ERROR 21000: Subquery returns more than 1 row DROP TABLE t1; +create table t1(a int); +create table t2(a int); +create table t3(a int); +insert into t1 values(1),(1); +insert into t2 values(2),(2); +insert into t3 values(3),(3); +select * from t1 union distinct select * from t2 union all select * from t3; +a +1 +2 +3 +3 +select * from (select * from t1 union distinct select * from t2 union all select * from t3) X; +a +1 +2 +3 +3 +drop table t1, t2, t3; |