[tarantool-patches] [PATCH v1 0/2] sql: check returned value type for UDF

Kirill Shcherbatov kshcherbatov at tarantool.org
Mon Sep 16 16:23:11 MSK 2019


This patch improves type checks and casts performed by user
defined functions. It also allows to return new cdata objects
from Lua functions which are serialized to scalar type now.

Branch: http://github.com/tarantool/tarantool/tree/kshch/gh-4387-func-returns-type-check
Issue: https://github.com/tarantool/tarantool/issues/4387

Kirill Shcherbatov (2):
  sql: better LUA arguments conversion for UDFs
  sql: check returned value type for UDF

 src/box/errcode.h               |  1 +
 src/box/field_def.h             | 17 +++++++-
 src/box/sql/func.c              | 40 ++++++++++++------
 src/box/sql/vdbe.c              | 12 ++++++
 test/sql-tap/func.test.lua      | 74 ++++++++++++++++++++++++++++++++-
 test/sql-tap/lua_sql.test.lua   | 34 ++++-----------
 test/sql/func-recreate.result   |  8 ++--
 test/sql/func-recreate.test.lua |  6 +--
 8 files changed, 143 insertions(+), 49 deletions(-)

-- 
2.23.0





More information about the Tarantool-patches mailing list