mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +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;
|
error=E_DEC_TRUNCATED;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (scale+from->intg <0)
|
if (scale+from->intg <= 0)
|
||||||
{
|
{
|
||||||
decimal_make_zero(to);
|
decimal_make_zero(to);
|
||||||
return E_DEC_OK;
|
return E_DEC_OK;
|
||||||
|
Reference in New Issue
Block a user