sql: make predicates accept and return boolean
This patch make following predicates accept and return only values of type boolean: IN, EXISTS, OR, AND, NOT, BETWEEN, IS (NULL). In terms of approach, it is enough to patch opcodes implementing these predicates. Part of #3723
Showing
- src/box/sql/expr.c 12 additions, 14 deletionssrc/box/sql/expr.c
- src/box/sql/parse.y 3 additions, 1 deletionsrc/box/sql/parse.y
- src/box/sql/select.c 1 addition, 1 deletionsrc/box/sql/select.c
- src/box/sql/vdbe.c 12 additions, 23 deletionssrc/box/sql/vdbe.c
- test/sql-tap/cse.test.lua 3 additions, 3 deletionstest/sql-tap/cse.test.lua
- test/sql-tap/e_select1.test.lua 1 addition, 1 deletiontest/sql-tap/e_select1.test.lua
- test/sql-tap/in1.test.lua 3 additions, 3 deletionstest/sql-tap/in1.test.lua
- test/sql-tap/misc3.test.lua 1 addition, 1 deletiontest/sql-tap/misc3.test.lua
- test/sql-tap/select4.test.lua 1 addition, 1 deletiontest/sql-tap/select4.test.lua
- test/sql-tap/tkt3541.test.lua 1 addition, 1 deletiontest/sql-tap/tkt3541.test.lua
- test/sql/types.result 13 additions, 9 deletionstest/sql/types.result
Loading
Please register or sign in to comment