summaryrefslogtreecommitdiff
path: root/mysql-test/t/func_math.test
diff options
context:
space:
mode:
authorholyfoot@hf-ibm.(none) <>2005-06-08 15:49:36 +0500
committerholyfoot@hf-ibm.(none) <>2005-06-08 15:49:36 +0500
commitff9951f221493632c77d92623ebb431adda9e2d4 (patch)
tree934ffa52aa1df1de3b1ab029692103e5cee518a1 /mysql-test/t/func_math.test
parent71f06aa7782e7775843b1c0f4b83c229c95edb1e (diff)
downloadmariadb-git-ff9951f221493632c77d92623ebb431adda9e2d4.tar.gz
Fix for bug #8429 (FORMAT returns incorrect result)
Diffstat (limited to 'mysql-test/t/func_math.test')
-rw-r--r--mysql-test/t/func_math.test12
1 files changed, 12 insertions, 0 deletions
diff --git a/mysql-test/t/func_math.test b/mysql-test/t/func_math.test
index 0eac72782a8..b21f38052b6 100644
--- a/mysql-test/t/func_math.test
+++ b/mysql-test/t/func_math.test
@@ -67,3 +67,15 @@ explain extended select degrees(pi()),radians(360);
--error 1054
select rand(rand);
+
+#
+# Bug #8459 (FORMAT returns incorrect result)
+#
+create table t1 (col1 int, col2 decimal(60,30));
+insert into t1 values(1,1234567890.12345);
+select format(col2,7) from t1;
+select format(col2,8) from t1;
+insert into t1 values(7,1234567890123456.12345);
+select format(col2,6) from t1 where col1=7;
+drop table t1;
+