sql: invalid integer type in arithmetic operations
Tarantool SQL used to return 'number' type in request metadata for arithmetic operations even when only 'integer's were used. This also fixes query planner optimisation bug: SELECT a FROM t1 WHERE a+0 IN (SELECT a FROM t1); used to open a new ephemeral table with OpenTEphemeral when it is not required (introduced by 2b22b913). Closes #4103
Showing
- src/box/sql/expr.c 9 additions, 2 deletionssrc/box/sql/expr.c
- test/sql-tap/in3.test.lua 1 addition, 1 deletiontest/sql-tap/in3.test.lua
- test/sql-tap/tkt-80e031a00f.test.lua 4 additions, 4 deletionstest/sql-tap/tkt-80e031a00f.test.lua
- test/sql/gh-3199-no-mem-leaks.result 12 additions, 12 deletionstest/sql/gh-3199-no-mem-leaks.result
- test/sql/types.result 28 additions, 0 deletionstest/sql/types.result
- test/sql/types.test.lua 8 additions, 0 deletionstest/sql/types.test.lua
Loading
Please register or sign in to comment