[tarantool-patches] [PATCH v2 0/3] sql: fixes for ck constraints involving a function

Kirill Shcherbatov kshcherbatov at tarantool.org
Thu Sep 12 11:06:40 MSK 2019


This patchset fixes some problems with CK constraints using user-defined
function in some corner case.

Branch: http://github.com/tarantool/tarantool/tree/kshch/gh-4176-ck-func-recovery-failure
Issue: https://github.com/tarantool/tarantool/issues/4176

Kirill Shcherbatov (3):
  box: an ability to disable CK constraints
  sql: disallow ck using non-persistent function
  sql: use name instead of function pointer for UDF

 extra/exports            |   1 +
 src/box/ck_constraint.c  |  23 +++++-
 src/box/ck_constraint.h  |  19 +++++
 src/box/lua/schema.lua   |  13 ++++
 src/box/lua/space.cc     |   3 +
 src/box/memtx_engine.c   |  15 ++++
 src/box/sql/expr.c       |  17 +++--
 src/box/sql/resolve.c    |  10 +++
 src/box/sql/vdbe.c       |  17 +++--
 src/box/sql/vdbe.h       |   1 +
 test/sql/checks.result   | 155 +++++++++++++++++++++++++++++++++++++++
 test/sql/checks.test.lua |  61 +++++++++++++++
 12 files changed, 323 insertions(+), 12 deletions(-)

-- 
2.23.0





More information about the Tarantool-patches mailing list