summaryrefslogtreecommitdiff
path: root/mysql-test/r/union.result
diff options
context:
space:
mode:
authormhansson/martin@linux-st28.site <>2007-12-19 15:59:05 +0100
committermhansson/martin@linux-st28.site <>2007-12-19 15:59:05 +0100
commit0004b99b58187fc00fbc7be9daa18da46b630a30 (patch)
tree3f1a6986c8f700958371ae168aab9940cd26789b /mysql-test/r/union.result
parent1a8b8eb91c3c8587d7fcf0cd56d0b31fee7364fc (diff)
parent867a78654946c7c7ebed430b2b8437e837a0455d (diff)
downloadmariadb-git-0004b99b58187fc00fbc7be9daa18da46b630a30.tar.gz
Merge mhansson@bk-internal:/home/bk/mysql-5.0-opt
into linux-st28.site:/home/martin/mysql/src/bug32848/my50-bug32848
Diffstat (limited to 'mysql-test/r/union.result')
-rw-r--r--mysql-test/r/union.result24
1 files changed, 24 insertions, 0 deletions
diff --git a/mysql-test/r/union.result b/mysql-test/r/union.result
index bd0c1f31bd7..6007fdd403a 100644
--- a/mysql-test/r/union.result
+++ b/mysql-test/r/union.result
@@ -1482,4 +1482,28 @@ ERROR HY000: Incorrect usage of UNION and INTO
SELECT a INTO DUMPFILE 'union.out.file8' FROM t1 UNION SELECT a FROM t1;
ERROR HY000: Incorrect usage of UNION and INTO
DROP TABLE t1;
+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