sql: fix wrong flag is_res_neg in sql_rem_int()
This patch makes the is_res_neg flag false in the sql_rem_int() function if the left value is negative and the result is 0. Prior to this patch, the value of the flag was true, which resulted in an assertion during encoding 0 as MP_INT. Closes #6575 NO_DOC=bugfix
Showing
- changelogs/unreleased/gh-6575-assertion-in-modulo.md 4 additions, 0 deletionschangelogs/unreleased/gh-6575-assertion-in-modulo.md
- src/box/sql/util.c 1 addition, 1 deletionsrc/box/sql/util.c
- test/sql-luatest/gh_6575_assertion_in_modulo_test.lua 20 additions, 0 deletionstest/sql-luatest/gh_6575_assertion_in_modulo_test.lua
Loading
Please register or sign in to comment