box: add iterator type checking
Return a more meaningful message about a malformed opts to select, count and pairs methods of index object. Do not fail with luajit error. Also allow to pass specific iterator as a box.index.{ALL,...} directly. For example, `s:pairs(nil, box.index.GT)`. Fixes #6501 NO_DOC=bug fix (cherry picked from commit 3a98e079)
Showing
- changelogs/unreleased/gh-6501-attempt-to-index-local-opts.md 3 additions, 0 deletionschangelogs/unreleased/gh-6501-attempt-to-index-local-opts.md
- src/box/lua/net_box.lua 2 additions, 4 deletionssrc/box/lua/net_box.lua
- src/box/lua/schema.lua 13 additions, 4 deletionssrc/box/lua/schema.lua
- test/box/select.result 69 additions, 0 deletionstest/box/select.result
- test/box/select.test.lua 21 additions, 0 deletionstest/box/select.test.lua
Loading
Please register or sign in to comment