diff options
author | Alexey Kopytov <Alexey.Kopytov@sun.com> | 2009-03-27 13:40:35 +0300 |
---|---|---|
committer | Alexey Kopytov <Alexey.Kopytov@sun.com> | 2009-03-27 13:40:35 +0300 |
commit | 1b93843864c16cc98494c0c805828d142eb5065d (patch) | |
tree | 2443db07ded3aa10caee6e9992b00b054780063c /mysql-test/t/union.test | |
parent | 15baa13f84b9880eb9217a3c3b4f19c51bdfaf2d (diff) | |
parent | 0b60184b90cfb7ed1eb927e5106eb194677d43f7 (diff) | |
download | mariadb-git-1b93843864c16cc98494c0c805828d142eb5065d.tar.gz |
Manual merge.
Diffstat (limited to 'mysql-test/t/union.test')
-rw-r--r-- | mysql-test/t/union.test | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/mysql-test/t/union.test b/mysql-test/t/union.test index ad4d57b7128..d0032150282 100644 --- a/mysql-test/t/union.test +++ b/mysql-test/t/union.test @@ -1051,4 +1051,19 @@ SELECT * FROM (SELECT * FROM (SELECT NULL)a) b UNION SELECT a FROM t1; DESC t6; DROP TABLE t1, t2, t3, t4, t5, t6; + +# +# Bug #43432: Union on floats does unnecessary rounding +# + +CREATE TABLE t1 (f FLOAT(9,6)); +CREATE TABLE t2 AS SELECT f FROM t1 UNION SELECT f FROM t1; +SHOW FIELDS FROM t2; +DROP TABLE t1, t2; + +CREATE TABLE t1(d DOUBLE(9,6)); +CREATE TABLE t2 AS SELECT d FROM t1 UNION SELECT d FROM t1; +SHOW FIELDS FROM t2; +DROP TABLE t1, t2; + --echo End of 5.0 tests |