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 95F4A469719 for ; Thu, 17 Sep 2020 18:16:54 +0300 (MSK) References: <20200911215115.6622-1-roman.habibov@tarantool.org> <20200911215115.6622-3-roman.habibov@tarantool.org> From: Vladislav Shpilevoy Message-ID: <954af9e3-1771-a6e7-caac-e3a6e9497f96@tarantool.org> Date: Thu, 17 Sep 2020 17:16:52 +0200 MIME-Version: 1.0 In-Reply-To: <20200911215115.6622-3-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 2/6] sql: refactor create_table_def and parse List-Id: Tarantool development patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Roman Khabibov , tarantool-patches@dev.tarantool.org > diff --git a/src/box/sql/sqlInt.h b/src/box/sql/sqlInt.h > index 5913d7614..7057c20b6 100644 > --- a/src/box/sql/sqlInt.h > +++ b/src/box/sql/sqlInt.h > @@ -2257,6 +2257,18 @@ struct Parse { > * sqlEndTable() function). > */ > struct create_table_def create_table_def; > + /* > + * FK and CK constraints appeared in a . > + */ > + struct create_fkeys_def fkeys_def; > + struct create_checks_def checks_def; > + /* > + * True, if column within a statement to be > + * created has . > + */ > + bool has_autoinc;> + /* Id of field with . */ > + uint32_t autoinc_fieldno; Can we remove the fields completely and use space->sequence_fieldno? > bool initiateTTrans; /* Initiate Tarantool transaction */ > /** If set - do not emit byte code at all, just parse. */ > bool parse_only; >