diff options
author | unknown <ramil@mysql.com> | 2005-05-20 01:04:08 +0500 |
---|---|---|
committer | unknown <ramil@mysql.com> | 2005-05-20 01:04:08 +0500 |
commit | 4ba837025ce4be31cf9fdabe4770a8b990458451 (patch) | |
tree | 5e6d9435d32b26b1324c1287df3626c0e93da8c0 /mysql-test/r/func_math.result | |
parent | 338f770267c18350ad177dca37228dff40375234 (diff) | |
download | mariadb-git-4ba837025ce4be31cf9fdabe4770a8b990458451.tar.gz |
hf's fix for bug #9060 (FORMAT returns incorrect result)
we need proper rounding there
mysql-test/r/func_math.result:
test result fixed
mysql-test/t/func_math.test:
test case added
sql/item_func.cc:
my_double_round implementation added
sql/item_strfunc.cc:
my_double_round used
sql/mysql_priv.h:
my_double_round interface
Diffstat (limited to 'mysql-test/r/func_math.result')
-rw-r--r-- | mysql-test/r/func_math.result | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/mysql-test/r/func_math.result b/mysql-test/r/func_math.result index 005f41f7063..0798a034c3e 100644 --- a/mysql-test/r/func_math.result +++ b/mysql-test/r/func_math.result @@ -120,6 +120,9 @@ ASIN(0.8+0.2) SELECT ASIN(1.2-0.2); ASIN(1.2-0.2) 1.5707963267949 +select format(4.55, 1), format(4.551, 1); +format(4.55, 1) format(4.551, 1) +4.6 4.6 explain extended select degrees(pi()),radians(360); id select_type table type possible_keys key key_len ref rows Extra 1 SIMPLE NULL NULL NULL NULL NULL NULL NULL No tables used |