sql: implicit cast rules for arithmetic operations
After this patch, arithmetic operations will only accept numeric values. For the "%" operation, the rules have become even stricter, now it accepts only INTEGER and UNSIGNED values. Part of #4470 Closes #5756
Showing
- changelogs/unreleased/gh-5756-remove-implicit-cast-in-arithmetic.md 3 additions, 0 deletions.../unreleased/gh-5756-remove-implicit-cast-in-arithmetic.md
- src/box/sql/mem.c 103 additions, 104 deletionssrc/box/sql/mem.c
- test/sql-tap/gh-5756-implicit-cast-in-arithmetic.test.lua 294 additions, 0 deletionstest/sql-tap/gh-5756-implicit-cast-in-arithmetic.test.lua
- test/sql-tap/misc1.test.lua 6 additions, 3 deletionstest/sql-tap/misc1.test.lua
- test/sql-tap/misc3.test.lua 4 additions, 4 deletionstest/sql-tap/misc3.test.lua
- test/sql-tap/tkt-a8a0d2996a.test.lua 22 additions, 22 deletionstest/sql-tap/tkt-a8a0d2996a.test.lua
- test/sql-tap/uuid.test.lua 1 addition, 1 deletiontest/sql-tap/uuid.test.lua
- test/sql/boolean.result 41 additions, 41 deletionstest/sql/boolean.result
- test/sql/types.result 2 additions, 5 deletionstest/sql/types.result
Loading
Please register or sign in to comment