sql: ignore \0 in string passed to C-function
Prior to this patch string passed to user-defined C-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. Now it isn't cropped when passed from SQL. Part of #5938
Showing
- src/box/sql/func.c 2 additions, 1 deletionsrc/box/sql/func.c
- test/CMakeLists.txt 1 addition, 0 deletionstest/CMakeLists.txt
- test/sql-tap/CMakeLists.txt 2 additions, 0 deletionstest/sql-tap/CMakeLists.txt
- test/sql-tap/gh-5938-wrong-string-length.c 41 additions, 0 deletionstest/sql-tap/gh-5938-wrong-string-length.c
- test/sql-tap/gh-5938-wrong-string-length.test.lua 28 additions, 0 deletionstest/sql-tap/gh-5938-wrong-string-length.test.lua
Loading
Please register or sign in to comment