[Tarantool-patches] [PATCH v1 00/21] Refactor non-standard and non-aggragate functions
imeevma at tarantool.org
imeevma at tarantool.org
Fri Oct 8 20:31:33 MSK 2021
This patch-set refactor the built-in SQL functions that were not refactored in
the previous two patch-sets. It also simplifies struct Mem.
https://github.com/tarantool/tarantool/issues/4145
https://github.com/tarantool/tarantool/tree/imeevma/gh-4145-row-sql-builtin-funcs
Mergen Imeev (21):
sql: refactor CHAR() function
sql: refactor GREATEST() and LEAST() functions
sql: refactor HEX() function
sql: refactor LENGTH() function
sql: refactor PRINTF() function
sql: refactor RANDOM() function
sql: rework RANDOMBLOB() function
sql: refactor ZEROBLOB() function
sql: refactor TYPEOF() function
sql: refactor ROUND() function
sql: refactor ROW_COUNT() function
sql: rework UUID() function
sql: refactor VERSION() function
sql: refactor UNICODE() function
sql: refactor of SOUNDEX() function
sql: refactor REPLACE() function
sql: refactor QUOTE() function
sql: remove unused code
sql: remove MEM_Dyn flag
sql: remove MEM_Term flag
sql: make arguments to be const
src/box/bind.c | 5 +-
src/box/sql/func.c | 937 +++++++++++++++----------------------
src/box/sql/main.c | 10 -
src/box/sql/mem.c | 197 +-------
src/box/sql/mem.h | 160 +------
src/box/sql/printf.c | 18 +-
src/box/sql/sqlInt.h | 66 +--
src/box/sql/vdbe.h | 4 +-
src/box/sql/vdbeapi.c | 238 +---------
src/box/sql/vdbeaux.c | 31 +-
src/box/sql/whereexpr.c | 19 +-
test/sql-tap/func.test.lua | 4 +-
test/sql-tap/uuid.test.lua | 11 +-
13 files changed, 461 insertions(+), 1239 deletions(-)
--
2.25.1
More information about the Tarantool-patches
mailing list