diff options
author | unknown <ramil@mysql.com> | 2005-04-19 14:44:54 +0500 |
---|---|---|
committer | unknown <ramil@mysql.com> | 2005-04-19 14:44:54 +0500 |
commit | a437b82affd3323bd02dc60ae0b4565825f1418d (patch) | |
tree | 1708cb3ac5cc59a4148c748e864034fdf58aee3c /mysql-test/t/func_math.test | |
parent | 24dd3ea806742038fd41d8f7481a35e248b95bf5 (diff) | |
download | mariadb-git-a437b82affd3323bd02dc60ae0b4565825f1418d.tar.gz |
A fix (bug #9837: round(1, 6) delivers wrong value in create table context).
sql/item_func.cc:
A fix (bug #9837: round(1, 6) delivers wrong value in create table context).
As we change decimals, we should change max_length accordingly.
Diffstat (limited to 'mysql-test/t/func_math.test')
-rw-r--r-- | mysql-test/t/func_math.test | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/mysql-test/t/func_math.test b/mysql-test/t/func_math.test index 668aefc2d8d..4c24dae8c5d 100644 --- a/mysql-test/t/func_math.test +++ b/mysql-test/t/func_math.test @@ -2,6 +2,10 @@ # Test of math functions # +--disable_warnings +drop table if exists t1; +--enable_warnings + select floor(5.5),floor(-5.5); explain extended select floor(5.5),floor(-5.5); select ceiling(5.5),ceiling(-5.5); @@ -58,3 +62,12 @@ explain extended select degrees(pi()),radians(360); --error 1054 select rand(rand); + +# +# Bug #9837: problem with round() +# + +create table t1 select round(1, 6); +show create table t1; +select * from t1; +drop table t1; |