sql: fix cast of small negative DOUBLE to INTEGER
Prior to this patch when DOUBLE value that less than 0.0 and greater than -1.0 was cast to INTEGER, it was considered to be negative number though the result was 0. This patch fixes this, so now such DOUBLE value will be properly cast to INTEGER and UNSIGNED. Closes #6225
Showing
- changelogs/unreleased/gh-6225-cast-of-small-negative-double-to-int.md 4 additions, 0 deletions...nreleased/gh-6225-cast-of-small-negative-double-to-int.md
- src/box/sql/mem.c 9 additions, 9 deletionssrc/box/sql/mem.c
- test/sql-tap/numcast.test.lua 13 additions, 1 deletiontest/sql-tap/numcast.test.lua
Loading
Please register or sign in to comment