mirror of
https://github.com/MariaDB/server.git
synced 2026-04-29 03:35:34 +02: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:
parent
b0502fc200
commit
df60c7ef2d
3 changed files with 38 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue