diff options
author | unknown <hf@deer.(none)> | 2005-06-15 19:53:40 +0500 |
---|---|---|
committer | unknown <hf@deer.(none)> | 2005-06-15 19:53:40 +0500 |
commit | 19cd85ddd27d25675e02ec1fd781fdc3d4b24c40 (patch) | |
tree | 3585affbc0a60dc069a04503309966ca2239f010 /mysql-test/t/func_math.test | |
parent | bf4f38a229b998968f1a6c11b2b01945301d03c1 (diff) | |
download | mariadb-git-19cd85ddd27d25675e02ec1fd781fdc3d4b24c40.tar.gz |
Fix for bug #10632 (CEILING returns wrong result)
mysql-test/r/func_math.result:
test result fixed
mysql-test/t/func_math.test:
test case added
strings/decimal.c:
handling of round_digit changed - we have to check all the digits after
the point if round_digit is 0
Diffstat (limited to 'mysql-test/t/func_math.test')
-rw-r--r-- | mysql-test/t/func_math.test | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/mysql-test/t/func_math.test b/mysql-test/t/func_math.test index 03057af6911..da4b8335e07 100644 --- a/mysql-test/t/func_math.test +++ b/mysql-test/t/func_math.test @@ -84,3 +84,10 @@ drop table t1; # Bug #10083 (round doesn't increase decimals) # select round(150, 2); + +# +# Bug @10632 (Ceiling function returns wrong answer) +# +select ceil(0.09); +select ceil(0.000000000000000009); + |