sql: ignore \0 in string passed to Lua-function
Prior to this patch string passed to user-defined Lua-function from SQL was cropped in case it contains '\0'. At the same time, it wasn't cropped if it is passed to the function from BOX. After this patch the string won't be cropped when passed from SQL if it contain '\0'. Closes #5938
Showing
- changelogs/unreleased/fix-string-cropping-in-user-functions.md 5 additions, 0 deletions...elogs/unreleased/fix-string-cropping-in-user-functions.md
- src/box/sql/func.c 2 additions, 1 deletionsrc/box/sql/func.c
- test/sql-tap/gh-5938-wrong-string-length.test.lua 18 additions, 1 deletiontest/sql-tap/gh-5938-wrong-string-length.test.lua
Loading
Please register or sign in to comment