From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 712A22310F for ; Thu, 12 Sep 2019 04:06:49 -0400 (EDT) Received: from turing.freelists.org ([127.0.0.1]) by localhost (turing.freelists.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id H2bEFqPuRvWR for ; Thu, 12 Sep 2019 04:06:49 -0400 (EDT) Received: from smtpng1.m.smailru.net (smtpng1.m.smailru.net [94.100.181.251]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTPS id 88A88230E7 for ; Thu, 12 Sep 2019 04:06:48 -0400 (EDT) From: Kirill Shcherbatov Subject: [tarantool-patches] [PATCH v2 0/3] sql: fixes for ck constraints involving a function Date: Thu, 12 Sep 2019 11:06:40 +0300 Message-Id: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: tarantool-patches-bounce@freelists.org Errors-to: tarantool-patches-bounce@freelists.org Reply-To: tarantool-patches@freelists.org List-Help: List-Unsubscribe: List-software: Ecartis version 1.0.0 List-Id: tarantool-patches List-Subscribe: List-Owner: List-post: List-Archive: To: tarantool-patches@freelists.org, korablev@tarantool.org Cc: Kirill Shcherbatov 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