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 63EB92B50D for ; Fri, 29 Mar 2019 14:24:30 -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 UXUT4l8lWuNV for ; Fri, 29 Mar 2019 14:24:30 -0400 (EDT) Received: from smtpng3.m.smailru.net (smtpng3.m.smailru.net [94.100.177.149]) (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 21FF02B50B for ; Fri, 29 Mar 2019 14:24:30 -0400 (EDT) From: Nikita Pettik Subject: [tarantool-patches] [PATCH 0/4] Fixes in SQL involving no-pk or no-format spaces Date: Fri, 29 Mar 2019 21:24:20 +0300 Message-Id: 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 Cc: v.shpilevoy@tarantool.org, Nikita Pettik Branch: https://github.com/tarantool/tarantool/tree/np/fix-no-index-no-format-DDL This patch-set consists of several (almost independent) fixes of bugs which can result in crashes. All of them are based on situation when SQL appeals to spaces which lack format or indexes. Nikita Pettik (4): Drop foreign keys before indexes in space:drop() Fix creation of FK constraint in case of no child's PK sql: disallow creation of index on space without format sql: disallow creation of FK referencing space without PK src/box/alter.cc | 2 +- src/box/lua/schema.lua | 6 +++--- src/box/sql/build.c | 23 +++++++++++++++++++++- src/box/sql/delete.c | 4 +--- src/box/sql/sqlInt.h | 12 ++++++++++++ test/sql-tap/lua-tables.test.lua | 17 ++++++++++++++++- test/sql/foreign-keys.result | 41 ++++++++++++++++++++++++++++++++++++++++ test/sql/foreign-keys.test.lua | 21 ++++++++++++++++++++ 8 files changed, 117 insertions(+), 9 deletions(-) -- 2.15.1