diff options
author | mhansson/martin@linux-st28.site <> | 2007-12-21 14:52:39 +0100 |
---|---|---|
committer | mhansson/martin@linux-st28.site <> | 2007-12-21 14:52:39 +0100 |
commit | 8b65423d9d582be5fe2272ff714d46024b8f4b65 (patch) | |
tree | 4db05ce0abde8a41b21fcb0c65c94ab0635b8952 /mysql-test/r/union.result | |
parent | 1f5b0b3954a009c659642031d678e961d67bb36e (diff) | |
parent | fe93176c30da5f6ef05b0d8f766d2365a65f2bbd (diff) | |
download | mariadb-git-8b65423d9d582be5fe2272ff714d46024b8f4b65.tar.gz |
Merge mhansson@bk-internal:/home/bk/mysql-5.1-opt
into linux-st28.site:/home/martin/mysql/src/bug32848/my51-bug32848
Diffstat (limited to 'mysql-test/r/union.result')
-rw-r--r-- | mysql-test/r/union.result | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/mysql-test/r/union.result b/mysql-test/r/union.result index a8f538b6cc7..295451867c8 100644 --- a/mysql-test/r/union.result +++ b/mysql-test/r/union.result @@ -1496,4 +1496,28 @@ UNION SELECT 1,1; ERROR HY000: Incorrect usage of UNION and ORDER BY DROP TABLE t1,t2; +CREATE TABLE t1 (a INT); +INSERT INTO t1 VALUES (1), (2), (3); +CREATE TABLE t2 SELECT * FROM (SELECT NULL) a UNION SELECT a FROM t1; +DESC t2; +Field Type Null Key Default Extra +NULL int(11) YES NULL +CREATE TABLE t3 SELECT a FROM t1 UNION SELECT * FROM (SELECT NULL) a; +DESC t3; +Field Type Null Key Default Extra +a int(11) YES NULL +CREATE TABLE t4 SELECT NULL; +DESC t4; +Field Type Null Key Default Extra +NULL binary(0) YES NULL +CREATE TABLE t5 SELECT NULL UNION SELECT NULL; +DESC t5; +Field Type Null Key Default Extra +NULL binary(0) YES NULL +CREATE TABLE t6 +SELECT * FROM (SELECT * FROM (SELECT NULL)a) b UNION SELECT a FROM t1; +DESC t6; +Field Type Null Key Default Extra +NULL int(11) YES NULL +DROP TABLE t1, t2, t3, t4, t5, t6; End of 5.0 tests |