From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 dev.tarantool.org (Postfix) with ESMTPS id A47ED430408 for ; Tue, 11 Aug 2020 03:33:41 +0300 (MSK) From: Roman Khabibov Date: Tue, 11 Aug 2020 03:33:34 +0300 Message-Id: <20200811003338.45084-1-roman.habibov@tarantool.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [Tarantool-patches] [PATCH v3 0/4] Support ALTER TABLE ADD COLUMN List-Id: Tarantool development patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: tarantool-patches@dev.tarantool.org Cc: v.shpilevoy@tarantool.org I split the last patch into three patches for convenience. @ChangeLog - Added statement support. Column description is the same as in statement (gh-2349, gh-3075). Branch: https://github.com/tarantool/tarantool/tree/romanhabibov/gh-3075-add-column-v2 Issue: https://github.com/tarantool/tarantool/issues/3075 https://github.com/tarantool/tarantool/issues/2349 Roman Khabibov (4): sql: rename TK_COLUMN to TK_COLUMN_NAME sql: refactor create_table_def and parse schema: add box_space_field_MAX sql: support column addition extra/addopcodes.sh | 2 +- extra/mkkeywordhash.c | 7 +- src/box/errcode.h | 2 + src/box/schema_def.h | 1 + src/box/sql/build.c | 602 ++++++++++++++++++++++----------- src/box/sql/expr.c | 45 +-- src/box/sql/fk_constraint.c | 2 +- src/box/sql/parse.y | 44 ++- src/box/sql/parse_def.h | 53 ++- src/box/sql/prepare.c | 7 +- src/box/sql/resolve.c | 10 +- src/box/sql/select.c | 10 +- src/box/sql/sqlInt.h | 61 +++- src/box/sql/treeview.c | 2 +- src/box/sql/where.c | 18 +- src/box/sql/whereexpr.c | 12 +- test/box/error.result | 2 + test/sql/add-column.result | 471 ++++++++++++++++++++++++++ test/sql/add-column.test.sql | 167 +++++++++ test/sql/checks.result | 20 ++ test/sql/checks.test.lua | 9 + test/sql/foreign-keys.result | 28 ++ test/sql/foreign-keys.test.lua | 11 + 23 files changed, 1275 insertions(+), 311 deletions(-) create mode 100644 test/sql/add-column.result create mode 100644 test/sql/add-column.test.sql -- 2.21.0 (Apple Git-122)