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 CCBA12616C for ; Wed, 23 Jan 2019 12:56:23 -0500 (EST) 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 UgFMW-zOom0q for ; Wed, 23 Jan 2019 12:56:23 -0500 (EST) 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 1700B2601F for ; Wed, 23 Jan 2019 12:56:22 -0500 (EST) From: Nikita Pettik Subject: [tarantool-patches] [PATCH v2 0/5] Introduce ALTER TABLE ADD CONSTRAINT UNIQUE/PK Date: Wed, 23 Jan 2019 20:56:13 +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, kostja@tarantool.org, Nikita Pettik Branch: https://github.com/tarantool/tarantool/tree/np/gh-3914-fix-create-index Issues: https://github.com/tarantool/tarantool/issues/3097 https://github.com/tarantool/tarantool/issues/3914 Link to previous thread: https://www.freelists.org/post/tarantool-patches/PATCH-06-Introduce-ALTER-TABLE-ADD-CONSTRAINT-UNIQUEPK Changelog: - Completely reworked first patch in series: now it introduces hierarchical format for structures which assemble arguments during DDL parsing. - Removed third patch (sql: remove start token from sql_create_index args) since it was merged to the first one. Nikita Pettik (5): sql: introduce structs assembling DDL arguments during parsing sql: rework ALTER TABLE grammar sql: refactor getNewIid() function sql: fix error message for improperly created index sql: introduce ALTER TABLE ADD CONSTRAINT UNIQUE/PRIMARY KEY src/box/sql/CMakeLists.txt | 1 + src/box/sql/alter.c | 10 +- src/box/sql/build.c | 240 ++++++++++++++++++++++++--------------- src/box/sql/parse.y | 262 ++++++++++++++++++++++++++++++++++++------- src/box/sql/parse_def.c | 158 ++++++++++++++++++++++++++ src/box/sql/parse_def.h | 170 ++++++++++++++++++++++++++++ src/box/sql/sqliteInt.h | 70 +++--------- src/box/sql/trigger.c | 57 +++++----- test/sql-tap/alter.test.lua | 57 +++++++++- test/sql-tap/index1.test.lua | 28 ++++- test/sql-tap/index7.test.lua | 2 +- 11 files changed, 830 insertions(+), 225 deletions(-) create mode 100644 src/box/sql/parse_def.c create mode 100644 src/box/sql/parse_def.h -- 2.15.1