mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
fix for decimal.c
This commit is contained in:
@ -873,7 +873,7 @@ int decimal_round(decimal *from, decimal *to, int scale, decimal_round_mode mode
|
||||
error=E_DEC_TRUNCATED;
|
||||
}
|
||||
|
||||
if (scale+from->intg <0)
|
||||
if (scale+from->intg <= 0)
|
||||
{
|
||||
decimal_make_zero(to);
|
||||
return E_DEC_OK;
|
||||
|
Reference in New Issue
Block a user