diff options
author | Alexey Kopytov <Alexey.Kopytov@sun.com> | 2009-03-27 15:59:09 +0300 |
---|---|---|
committer | Alexey Kopytov <Alexey.Kopytov@sun.com> | 2009-03-27 15:59:09 +0300 |
commit | b718d18aea58809e0e5ccbbf7a5fb31b63cc21db (patch) | |
tree | 98f41d6cc7aa09e21f49fd1b7bab42ae957d3e7e /mysql-test/t/union.test | |
parent | ad7e825d54d618957fe62027644c5173db67a7c8 (diff) | |
parent | 1b93843864c16cc98494c0c805828d142eb5065d (diff) | |
download | mariadb-git-b718d18aea58809e0e5ccbbf7a5fb31b63cc21db.tar.gz |
Automerge.
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 ee4c174d76b..ece7099f66e 100644 --- a/mysql-test/t/union.test +++ b/mysql-test/t/union.test @@ -1074,4 +1074,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 |