msgpack: fix decoding intervals with int64
It is possible for interval to have days, hours, minutes and seconds larger than INT_MAX (or less than INT_MIN). Before this patch, msgpack decoding had failed to parse intervals with msgpack int64 and uint64. int64_t should be enough to store any value allowed for datetime intervals. Closes #8887 NO_DOC=small bug fix
Showing
- changelogs/unreleased/gh-8887-fix-interval-int64.md 4 additions, 0 deletionschangelogs/unreleased/gh-8887-fix-interval-int64.md
- src/lib/core/mp_interval.c 3 additions, 3 deletionssrc/lib/core/mp_interval.c
- test/app-tap/datetime.test.lua 10 additions, 3 deletionstest/app-tap/datetime.test.lua
- test/unit/interval.c 45 additions, 1 deletiontest/unit/interval.c
Loading