[Tarantool-patches] [PATCH v4 2/6] sql: refactor create_table_def and parse
Nikita Pettik
korablev at tarantool.org
Wed Sep 16 16:27:09 MSK 2020
On 12 Sep 00:51, Roman Khabibov wrote:
> Move ck, fk constraint lists and autoincrement info from
> struct create_table_def to struct Parse to make the code more
> reusable when implementing <ALTER TABLE ADD COLUMN>.
>
> Needed for #3075
> ---
Does ANSI allow to include constraints in ADD COLUMN statement?
Why did you decide to add autoincrement to this list? Was there any
discussion on this subj?
> src/box/sql/build.c | 182 ++++++++++++++++++++++------------------
> src/box/sql/parse.y | 2 +
> src/box/sql/parse_def.h | 53 ++++++------
> src/box/sql/prepare.c | 3 +-
> src/box/sql/sqlInt.h | 12 +++
> 5 files changed, 142 insertions(+), 110 deletions(-)
>
More information about the Tarantool-patches
mailing list