diff options
author | unknown <bell@sanja.is.com.ua> | 2005-03-30 10:27:36 +0300 |
---|---|---|
committer | unknown <bell@sanja.is.com.ua> | 2005-03-30 10:27:36 +0300 |
commit | dddabc7edd10d3b8d42b532354d572b70bba8f18 (patch) | |
tree | 66e27618263c014482bfc63b1ca1ea64e81bb0a5 /mysql-test/t/union.test | |
parent | dad034597ed0dc2f34fbd41489cb23fc25ec7341 (diff) | |
parent | dda97623a7455afdf141005f1065f7bdf82fc8ca (diff) | |
download | mariadb-git-dddabc7edd10d3b8d42b532354d572b70bba8f18.tar.gz |
Merge
mysql-test/r/metadata.result:
Auto merged
sql/item.h:
Auto merged
sql/item_func.h:
Auto merged
sql/sql_parse.cc:
Auto merged
sql/sql_select.cc:
Auto merged
sql/sql_union.cc:
Auto merged
mysql-test/r/union.result:
SCCS merged
mysql-test/t/union.test:
SCCS merged
Diffstat (limited to 'mysql-test/t/union.test')
-rw-r--r-- | mysql-test/t/union.test | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/mysql-test/t/union.test b/mysql-test/t/union.test index 26dc544482e..94cbd71c00c 100644 --- a/mysql-test/t/union.test +++ b/mysql-test/t/union.test @@ -717,3 +717,28 @@ drop table t1; # set @val:=6; select concat('value is: ', @val) union select 'some text'; + +# +# Enum merging test +# +CREATE TABLE t1 ( + a ENUM('ä','ö','ü') character set utf8 not null default 'ü', + b ENUM("one", "two") character set utf8, + c ENUM("one", "two") +); +show create table t1; +insert into t1 values ('ä', 'one', 'one'), ('ö', 'two', 'one'), ('ü', NULL, NULL); +create table t2 select NULL union select a from t1; +show columns from t2; +drop table t2; +create table t2 select a from t1 union select NULL; +show columns from t2; +drop table t2; +create table t2 select a from t1 union select a from t1; +show columns from t2; +drop table t2; +-- error 1267 +create table t2 select a from t1 union select c from t1; +create table t2 select a from t1 union select b from t1; +show columns from t2; +drop table t2, t1; |