sql: check number of arguments during parsing
Prior to this patch, the number of arguments for functions with a variable number of arguments was checked at runtime. After this patch, it will be checked during parsing. For functions with a constant number of arguments, it is always checked during parsing. Part of #6105
Showing
- src/box/sql/func.c 17 additions, 6 deletionssrc/box/sql/func.c
- test/sql-tap/built-in-functions.test.lua 119 additions, 0 deletionstest/sql-tap/built-in-functions.test.lua
- test/sql-tap/engine.cfg 3 additions, 0 deletionstest/sql-tap/engine.cfg
- test/sql-tap/func.test.lua 4 additions, 4 deletionstest/sql-tap/func.test.lua
- test/sql-tap/func2.test.lua 9 additions, 9 deletionstest/sql-tap/func2.test.lua
- test/sql-tap/func5.test.lua 3 additions, 3 deletionstest/sql-tap/func5.test.lua
- test/sql-tap/select1.test.lua 1 addition, 1 deletiontest/sql-tap/select1.test.lua
- test/sql-tap/uuid.test.lua 1 addition, 1 deletiontest/sql-tap/uuid.test.lua
- test/sql/collation.result 1 addition, 1 deletiontest/sql/collation.result
Loading
Please register or sign in to comment