mirror of
https://github.com/MariaDB/server.git
synced 2025-12-03 05:41:09 +03:00
The loop in ull2dec() does not iterate if "from" is zero, so to->intg got erroneously set to 0 instead of 1. Because if this, my_decimal2seconds() wrote the fractional part into a wrong buf[x]. Catching the special case with zero "from" and properly initialize "to" using decimal_make_zero().
87 KiB
87 KiB