diff options
author | jimw@mysql.com <> | 2005-11-29 15:33:58 -0800 |
---|---|---|
committer | jimw@mysql.com <> | 2005-11-29 15:33:58 -0800 |
commit | f8afbe6f0cd6f4f555c66e1814dd749d97eca311 (patch) | |
tree | d4e212a2385d1df6283bfca8b3cace1b20ed1de1 /mysql-test/t/union.test | |
parent | 04d1ef90dded93605d521a07a0d60c65b2b4862d (diff) | |
parent | f353bec511bc1346d7ff7d99526004108e7015bf (diff) | |
download | mariadb-git-f8afbe6f0cd6f4f555c66e1814dd749d97eca311.tar.gz |
Merge mysql.com:/home/jimw/my/mysql-4.1-clean
into mysql.com:/home/jimw/my/mysql-5.0-clean
Diffstat (limited to 'mysql-test/t/union.test')
-rw-r--r-- | mysql-test/t/union.test | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/mysql-test/t/union.test b/mysql-test/t/union.test index daa83ef0fa4..6de90dd446d 100644 --- a/mysql-test/t/union.test +++ b/mysql-test/t/union.test @@ -753,6 +753,24 @@ create table t2 select a from t1 union select b from t1; show columns from t2; drop table t2, t1; +# +# Bug #14216: UNION + DECIMAL wrong values in result +# +create table t1 (f1 decimal(60,25), f2 decimal(60,25)); +insert into t1 values (0.0,0.0); +select f1 from t1 union all select f2 from t1; +select 'XXXXXXXXXXXXXXXXXXXX' as description, f1 from t1 +union all +select 'YYYYYYYYYYYYYYYYYYYY' as description, f2 from t1; +drop table t1; +create table t1 (f1 decimal(60,24), f2 decimal(60,24)); +insert into t1 values (0.0,0.0); +select f1 from t1 union all select f2 from t1; +select 'XXXXXXXXXXXXXXXXXXXX' as description, f1 from t1 +union all +select 'YYYYYYYYYYYYYYYYYYYY' as description, f2 from t1; +drop table t1; + # # Test that union with VARCHAR produces dynamic row tables # |