diff options
author | unknown <bell@sanja.is.com.ua> | 2004-09-17 13:23:57 +0300 |
---|---|---|
committer | unknown <bell@sanja.is.com.ua> | 2004-09-17 13:23:57 +0300 |
commit | f177c76fb226f70be426175f3d53eed557096ba4 (patch) | |
tree | beabd49788868b6e0aaa1150c108f4da4e3d7e9e /mysql-test/r/union.result | |
parent | ca65afeb72e7f514d51b7dcf2cc49e85a3b92677 (diff) | |
download | mariadb-git-f177c76fb226f70be426175f3d53eed557096ba4.tar.gz |
Do not try use fields examples is expression and fiend used or SET/ENUM field used in types merging procedure (BUG#5618)
mysql-test/r/union.result:
merging ENUM and SET fields in one UNION
mysql-test/t/union.test:
merging ENUM and SET fields in one UNION
Diffstat (limited to 'mysql-test/r/union.result')
-rw-r--r-- | mysql-test/r/union.result | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/mysql-test/r/union.result b/mysql-test/r/union.result index 2f42bedf67a..fbd4f8e11dc 100644 --- a/mysql-test/r/union.result +++ b/mysql-test/r/union.result @@ -996,3 +996,40 @@ PARTITIONED_B WHERE PARTITIONED_B.ID=PARTITIONED.ID1) UNION PARTITIONED_B WHERE PARTITIONED_B.ID=PARTITIONED.ID1); ID1 ID2 DATA1 DATA2 DATA3 ID DATA1 drop table t1,t2; +create table t1 (a ENUM('Yes', 'No') NOT NULL); +create table t2 (a ENUM('aaa', 'bbb') NOT NULL); +insert into t1 values ('No'); +insert into t2 values ('bbb'); +create table t3 (a SET('Yes', 'No') NOT NULL); +create table t4 (a SET('aaa', 'bbb') NOT NULL); +insert into t3 values (1); +insert into t4 values (3); +select "1" as a union select a from t1; +a +1 +No +select a as a from t1 union select "1"; +a +No +1 +select a as a from t2 union select a from t1; +a +bbb +No +select "1" as a union select a from t3; +a +1 +Yes +select a as a from t3 union select "1"; +a +Yes +1 +select a as a from t4 union select a from t3; +a +aaa,bbb +Yes +select a as a from t1 union select a from t4; +a +No +aaa,bbb +drop table t1,t2,t3,t4; |