summaryrefslogtreecommitdiff
path: root/mysql-test/t/union.test
diff options
context:
space:
mode:
authormonty@hundin.mysql.fi <>2001-09-17 15:40:03 +0300
committermonty@hundin.mysql.fi <>2001-09-17 15:40:03 +0300
commit295107457f420a6f30e8f915c0cd9d3d8447cc86 (patch)
tree223c241e869976a0e08b0b04c79b6e43d262ab79 /mysql-test/t/union.test
parent2e63f78787341198d853cdf07a4bbbd4c1c2ab69 (diff)
downloadmariadb-git-295107457f420a6f30e8f915c0cd9d3d8447cc86.tar.gz
Fixed bug with SELECT * ... UNION
Diffstat (limited to 'mysql-test/t/union.test')
-rw-r--r--mysql-test/t/union.test13
1 files changed, 10 insertions, 3 deletions
diff --git a/mysql-test/t/union.test b/mysql-test/t/union.test
index a5f1bfd644d..8325e6c7e77 100644
--- a/mysql-test/t/union.test
+++ b/mysql-test/t/union.test
@@ -25,15 +25,21 @@ select a,b from t1 into outfile 'skr' union select a,b from t2;
--error 1216
select a,b from t1 order by a union select a,b from t2;
---error 1217
-create table t3 select a,b from t1 union select a from t2;
-
--error 1216
insert into t3 select a from t1 order by a union select a from t2;
--error 1217
+create table t3 select a,b from t1 union select a from t2;
+
+--error 1217
select a,b from t1 union select a from t2;
+--error 1217
+select * from t1 union select a from t2;
+
+--error 1217
+select a from t1 union select * from t2;
+
# Test CREATE, INSERT and REPLACE
create table t3 select a,b from t1 union all select a,b from t2;
insert into t3 select a,b from t1 union all select a,b from t2;
@@ -54,4 +60,5 @@ CREATE TABLE t1 (
) TYPE=MyISAM;
INSERT INTO t1 (pseudo,pseudo1,same) VALUES ('joce', 'testtt', 1),('joce', 'tsestset', 1),('dekad', 'joce', 1);
SELECT pseudo FROM t1 WHERE pseudo1='joce' UNION SELECT pseudo FROM t1 WHERE pseudo='joce';
+SELECT * FROM t1 WHERE pseudo1='joce' UNION SELECT * FROM t1 WHERE pseudo='joce';
drop table t1;