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 2C2B020E6A for ; Sun, 9 Dec 2018 16:30:42 -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 ngHA5VBqmyOV for ; Sun, 9 Dec 2018 16:30:42 -0500 (EST) Received: from smtp52.i.mail.ru (smtp52.i.mail.ru [94.100.177.112]) (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 BDA4520E67 for ; Sun, 9 Dec 2018 16:30:40 -0500 (EST) From: Nikita Pettik Subject: [tarantool-patches] [PATCH 0/6] Remove string of SQL statement from opts Date: Mon, 10 Dec 2018 00:30: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/gh-2647-remove-sql-from-opts Issue: https://github.com/tarantool/tarantool/issues/2647 After DD integration was finished, there is no need to add string of SQL statement to space or index opts (except for VIEWs). So, current patch-set completely removes SQL from index opts, and removes SQL from space opts for ordinary spaces. Nikita Pettik (6): sql: avoid calling sql_encode_table_opts() during trigger creation sql: don't update SQL string during renaming test: fix sqltester methods to drop all tables/views sql: don't add string of 'CREATE TABLE...' to space opts sql: don't add string of 'CREATE INDEX ...' to index opts Remove SQL string from index opts src/box/alter.cc | 9 -- src/box/index_def.c | 20 --- src/box/index_def.h | 9 -- src/box/sql.c | 181 +++------------------- src/box/sql/analyze.c | 5 +- src/box/sql/build.c | 277 ++-------------------------------- src/box/sql/pragma.c | 2 - src/box/sql/sqliteInt.h | 1 - src/box/sql/tarantoolInt.h | 3 +- src/box/sql/trigger.c | 20 ++- src/box/sql/vdbe.c | 4 +- src/box/sql/where.c | 1 - test/sql-tap/alter.test.lua | 32 +++- test/sql-tap/drop_all.test.lua | 4 +- test/sql-tap/identifier_case.test.lua | 6 +- test/sql-tap/lua/sqltester.lua | 38 ++--- test/sql/upgrade.result | 8 +- test/sql/view.result | 3 + test/sql/view.test.lua | 1 + 19 files changed, 100 insertions(+), 524 deletions(-) -- 2.15.1