memtx: raise an error if argument of select() is a "clear" dict
Currently, select/pairs/get look at an :array part of passed table, that is why different problems occurs when passed to select() table is not a regular array. Now we will check if passed table is not "clear dict" (not empty table without array part). Invalid queries like s:select{key = 'value'} will fail with an appropriate error, but the problems with dicts containing array part still remain (for example, s:select{1, key = 'value'} is the same as s:select{1}). Closes #6167
Showing
- changelogs/unreleased/gh-6167-select-with-dict.md 3 additions, 0 deletionschangelogs/unreleased/gh-6167-select-with-dict.md
- src/box/lua/tuple.lua 7 additions, 2 deletionssrc/box/lua/tuple.lua
- test/box/gh-6167-select-with-dict.result 26 additions, 0 deletionstest/box/gh-6167-select-with-dict.result
- test/box/gh-6167-select-with-dict.test.lua 8 additions, 0 deletionstest/box/gh-6167-select-with-dict.test.lua
test/box/gh-6167-select-with-dict.result
0 → 100644
test/box/gh-6167-select-with-dict.test.lua
0 → 100644
Please register or sign in to comment