mirror of
https://github.com/MariaDB/server.git
synced 2025-07-27 18:02:13 +03:00
str2decimal: don't return a negative zero
This commit is contained in:
@ -928,6 +928,8 @@ internal_str2dec(const char *from, decimal_t *to, char **end, my_bool fixed)
|
||||
error= decimal_shift(to, (int) exponent);
|
||||
}
|
||||
}
|
||||
if (to->sign && decimal_is_zero(to))
|
||||
to->sign= 0;
|
||||
return error;
|
||||
|
||||
fatal_error:
|
||||
|
Reference in New Issue
Block a user