sql: refactor arithmetic operations to support unsigned ints
Let's patch internal VDBE routines which add, subtract, multiply, divide and calculate the remainder of division to allow them take operands of unsigned type. In this respect, each operator now accepts signs of both operands and return sign of result. Part of #3810 Part of #4015
Showing
- src/box/sql/func.c 10 additions, 4 deletionssrc/box/sql/func.c
- src/box/sql/sqlInt.h 31 additions, 3 deletionssrc/box/sql/sqlInt.h
- src/box/sql/util.c 157 additions, 53 deletionssrc/box/sql/util.c
- src/box/sql/vdbe.c 58 additions, 15 deletionssrc/box/sql/vdbe.c
- test/sql-tap/func.test.lua 24 additions, 12 deletionstest/sql-tap/func.test.lua
- test/sql-tap/limit.test.lua 2 additions, 2 deletionstest/sql-tap/limit.test.lua
- test/sql/integer-overflow.result 14 additions, 1 deletiontest/sql/integer-overflow.result
- test/sql/integer-overflow.test.lua 3 additions, 0 deletionstest/sql/integer-overflow.test.lua
Loading
Please register or sign in to comment