diff options
author | evgen@moonbone.local <> | 2006-07-22 02:15:36 +0400 |
---|---|---|
committer | evgen@moonbone.local <> | 2006-07-22 02:15:36 +0400 |
commit | 8540557457b420f975efcf15198b2b28aaae72c5 (patch) | |
tree | 24ec659d65ddf3233923209c11f693320c279d3a /mysql-test/t/union.test | |
parent | bcf822841b8a938ef90600e8eb26093724af2617 (diff) | |
parent | c875b8eb938112e807579ee8c820f8bbf3bb3cd6 (diff) | |
download | mariadb-git-8540557457b420f975efcf15198b2b28aaae72c5.tar.gz |
Merge epotemkin@bk-internal.mysql.com:/home/bk/mysql-5.0-opt
into moonbone.local:/work/autopush/12185-bug-5.0-opt-mysql
Diffstat (limited to 'mysql-test/t/union.test')
-rw-r--r-- | mysql-test/t/union.test | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/mysql-test/t/union.test b/mysql-test/t/union.test index 7dfe4ac482f..fdb5f968589 100644 --- a/mysql-test/t/union.test +++ b/mysql-test/t/union.test @@ -390,8 +390,8 @@ create table t1 SELECT da from t2 UNION select dt from t2; select * from t1; show create table t1; drop table t1; -create table t1 SELECT dt from t2 UNION select sc from t2; -select * from t1; +create table t1 SELECT dt from t2 UNION select trim(sc) from t2; +select trim(dt) from t1; show create table t1; drop table t1; create table t1 SELECT dt from t2 UNION select sv from t2; @@ -795,6 +795,14 @@ drop table t1; # End of 4.1 tests # +# Bug#12185: Data type aggregation may produce wrong result +# +create table t1(f1 char(1), f2 char(5), f3 binary(1), f4 binary(5), f5 timestamp, f6 varchar(1) character set utf8 collate utf8_general_ci, f7 text); +create table t2 as select *, f6 as f8 from t1 union select *, f7 from t1; +show create table t2; +drop table t1, t2; + +# # Bug#18175: Union select over 129 tables with a sum function fails. # (select avg(1)) union (select avg(1)) union (select avg(1)) union |