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 E59FB469719 for ; Tue, 6 Oct 2020 00:22:23 +0300 (MSK) References: <20200911215115.6622-1-roman.habibov@tarantool.org> <20200911215115.6622-5-roman.habibov@tarantool.org> From: Vladislav Shpilevoy Message-ID: Date: Mon, 5 Oct 2020 23:22:22 +0200 MIME-Version: 1.0 In-Reply-To: <20200911215115.6622-5-roman.habibov@tarantool.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [Tarantool-patches] [PATCH v4 4/6] sql: use parser's region of "index" array List-Id: Tarantool development patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Roman Khabibov , tarantool-patches@dev.tarantool.org Thanks for the patch! > diff --git a/src/box/sql/build.c b/src/box/sql/build.c > index 6cc76bb77..d1d240315 100644 > --- a/src/box/sql/build.c > +++ b/src/box/sql/build.c > @@ -2717,7 +2737,7 @@ sql_create_index(struct Parse *parse) { > > if (tbl_name != NULL) > goto exit_create_index; > - table_add_index(space, index); > + sql_space_add_index(&parse->region, space, index); In case of a fail the error is never checked anywhere. Parse->is_aborted stays false.