summaryrefslogtreecommitdiff
path: root/mysql-test/t/func_math.test
diff options
context:
space:
mode:
authorunknown <ramil@mysql.com>2005-05-20 01:04:08 +0500
committerunknown <ramil@mysql.com>2005-05-20 01:04:08 +0500
commit4482604ec687e8ec46fdaf90c63e141e7ef2d502 (patch)
tree5e6d9435d32b26b1324c1287df3626c0e93da8c0 /mysql-test/t/func_math.test
parent9c1bc4252f925a6cf43433492a49f3107ec1b67a (diff)
downloadmariadb-git-4482604ec687e8ec46fdaf90c63e141e7ef2d502.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/t/func_math.test')
-rw-r--r--mysql-test/t/func_math.test5
1 files changed, 5 insertions, 0 deletions
diff --git a/mysql-test/t/func_math.test b/mysql-test/t/func_math.test
index 33b672e42b5..0eac72782a8 100644
--- a/mysql-test/t/func_math.test
+++ b/mysql-test/t/func_math.test
@@ -54,6 +54,11 @@ SELECT ASIN(1.2-0.2);
#select floor(log(8)/log(2));
#select floor(log(16)/log(2));
+#
+# Bug #9060 (format returns incorrect result)
+#
+select format(4.55, 1), format(4.551, 1);
+
explain extended select degrees(pi()),radians(360);
#