mirror of
https://github.com/MariaDB/server.git
synced 2025-12-24 11:21:21 +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