[tarantool-patches] [PATCH v3 0/4] sql: fixes for ck constraints involving a function
Kirill Shcherbatov
kshcherbatov at tarantool.org
Mon Sep 16 15:47:08 MSK 2019
This patchset fixes some problems with CK constraints using user-defined
function in some corner case.
Changes in v3:
- ability to enable/disable ck constraints in SQL
- patch is split better on commits
- introduced is_recovery_competed global schema's state
- minor style fixes
Branch: http://github.com/tarantool/tarantool/tree/kshch/gh-4176-ck-func-recovery-failure
Issue: https://github.com/tarantool/tarantool/issues/4176
Kirill Shcherbatov (4):
box: an ability to disable CK constraints
sql: an ability to disable CK constraints
box: do not evaluate ck constraints on recovery
sql: use name instead of function pointer for UDF
extra/exports | 1 +
extra/mkkeywordhash.c | 2 +
src/box/box.cc | 1 +
src/box/ck_constraint.c | 21 +-
src/box/ck_constraint.h | 20 +
src/box/engine.c | 21 +
src/box/lua/schema.lua | 12 +
src/box/lua/space.cc | 3 +
src/box/memtx_engine.c | 1 +
src/box/schema.cc | 2 +
src/box/schema.h | 3 +
src/box/sql/alter.c | 38 ++
src/box/sql/expr.c | 17 +-
src/box/sql/parse.y | 10 +
src/box/sql/parse_def.h | 25 +-
src/box/sql/sqlInt.h | 10 +
src/box/sql/vdbe.c | 7 +-
test/sql/checks.re | 817 +++++++++++++++++++++++++++++++++++++++
test/sql/checks.result | 160 ++++++++
test/sql/checks.test.lua | 56 +++
20 files changed, 1219 insertions(+), 8 deletions(-)
create mode 100644 test/sql/checks.re
--
2.23.0
More information about the Tarantool-patches
mailing list