sql: introduce SQL_EXPR functions
This patch introduces the SQL_EXPR functions. These functions are SQL functions that consist of only one expression. Currently, the only way to use these functions is as a function in a CHECK constraint, since there is no interface to define the function's arguments. Part of #6986 NO_DOC=will be added later NO_CHANGELOG=will be added later
Showing
- src/box/func.c 4 additions, 0 deletionssrc/box/func.c
- src/box/func_def.c 3 additions, 1 deletionsrc/box/func_def.c
- src/box/func_def.h 1 addition, 0 deletionssrc/box/func_def.h
- src/box/sql.c 1 addition, 0 deletionssrc/box/sql.c
- src/box/sql.h 2 additions, 0 deletionssrc/box/sql.h
- src/box/sql/expr.c 19 additions, 0 deletionssrc/box/sql/expr.c
- src/box/sql/func.c 137 additions, 1 deletionsrc/box/sql/func.c
- src/box/sql/func.h 21 additions, 0 deletionssrc/box/sql/func.h
- src/box/sql/mem.c 26 additions, 0 deletionssrc/box/sql/mem.c
- src/box/sql/mem.h 4 additions, 0 deletionssrc/box/sql/mem.h
- src/box/sql/port.c 7 additions, 1 deletionsrc/box/sql/port.c
- src/box/sql/sqlInt.h 8 additions, 0 deletionssrc/box/sql/sqlInt.h
- src/box/sql/vdbe.c 18 additions, 9 deletionssrc/box/sql/vdbe.c
- src/box/sql/vdbeapi.c 9 additions, 0 deletionssrc/box/sql/vdbeapi.c
- test/sql-luatest/sql_func_expr_test.lua 97 additions, 0 deletionstest/sql-luatest/sql_func_expr_test.lua
Loading
Please register or sign in to comment