sql: do not reset region on select
Prior to this patch, region on fiber was reset during select(), get(), count(), max(), or min(). This would result in an error if one of these operations was used in a user-defined function in SQL. After this patch, these functions truncate region instead of resetting it. Closes #5427
Showing
- src/box/box.cc 3 additions, 2 deletionssrc/box/box.cc
- src/box/index.cc 15 additions, 10 deletionssrc/box/index.cc
- src/box/sql.c 3 additions, 2 deletionssrc/box/sql.c
- src/box/txn.h 20 additions, 3 deletionssrc/box/txn.h
- test/sql/gh-5427-lua-func-changes-result.result 149 additions, 0 deletionstest/sql/gh-5427-lua-func-changes-result.result
- test/sql/gh-5427-lua-func-changes-result.test.lua 68 additions, 0 deletionstest/sql/gh-5427-lua-func-changes-result.test.lua
Loading
Please register or sign in to comment