1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-01 03:47:19 +03:00

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
This commit is contained in:
unknown
2005-06-15 19:53:40 +05:00
parent b0502fc200
commit df60c7ef2d
3 changed files with 38 additions and 4 deletions

View File

@ -146,3 +146,9 @@ drop table t1;
select round(150, 2);
round(150, 2)
150.00
select ceil(0.09);
ceil(0.09)
1
select ceil(0.000000000000000009);
ceil(0.000000000000000009)
1