sql: allow to specify UNSIGNED column type
Since all preparations concerning internal handling of unsigned values have been done, now nothing prevents us from using UNSIGNED type in SQL. This patch allows to specify UNSIGNED as a column type and adds CAST rules, which are the same as for casual INTEGER, but with additional check - result must be positive. Otherwise, error is raised. Closes #4015
Showing
- extra/mkkeywordhash.c 1 addition, 0 deletionsextra/mkkeywordhash.c
- src/box/sql/parse.y 1 addition, 0 deletionssrc/box/sql/parse.y
- src/box/sql/vdbe.c 8 additions, 3 deletionssrc/box/sql/vdbe.c
- src/box/sql/vdbemem.c 9 additions, 1 deletionsrc/box/sql/vdbemem.c
- test/sql/types.result 71 additions, 0 deletionstest/sql/types.result
- test/sql/types.test.lua 17 additions, 0 deletionstest/sql/types.test.lua
Loading
Please register or sign in to comment