Tarantool development patches archive
 help / color / mirror / Atom feed
From: "n.pettik" <korablev@tarantool.org>
To: tarantool-patches@freelists.org
Cc: Kirill Shcherbatov <kshcherbatov@tarantool.org>
Subject: [tarantool-patches] Re: [PATCH v6 2/4] sql: remove SQL fields from Table and Column
Date: Fri, 18 May 2018 20:24:13 +0300	[thread overview]
Message-ID: <8524A570-B5A4-4053-A6AE-FA8D926DA15D@tarantool.org> (raw)
In-Reply-To: <4ede3bde-98d1-cc92-6659-891ef61e0917@tarantool.org>


> @@ -146,6 +146,12 @@ sql_expr_free(struct sqlite3 *db, struct Expr *expr, bool extern_alloc);
> 
> /**
>  * Create and initialize a new ephemeral SQL Table object.
> + * All memory allocation operations except Table object itself
> + * are performed in the region.
> + *
> + * The 'ephemeral' means that this memory is temporal,
> + * so the table should be rebuild with sql_table_def_rebuild for further use.

Fit comments in 66 chars. Moreover, I see that you accidentally included
changes concerning this comment to the next patch.
Lets return it back to this one.

> + *
>  * @param parser SQL Parser object.
>  * @param name Table to create name.
>  * @retval NULL on memory allocation error, Parser state changed.
> @@ -156,6 +162,11 @@ sql_ephemeral_table_new(struct Parse *parser, const char *name);
> 
> /**
>  * Create and initialize a new ephemeral space_def object.
> + * All memory allocation operations are performed on the region.
> + *
> + * The 'ephemeral' means that this memory is temporal,
> + * so the table should be rebuild with sql_table_def_rebuild for further use.

Lets don’t repeat the same comment twice. You may refer to it, if you want.

>> I would mention in commit message about the fact that
>> now almost within parsing context is allocated on region,
>> and at the end of parsing region is truncated. Or, at least,
>> in comments to sql_parser_destroy()/sql_parser_create()
> @@ -4157,6 +4157,8 @@ table_column_nullable_action(struct Table *tab, uint32_t column);
> 
> /**
>  * Initialize a new parser object.
> + * A number of service allocations are performed on the region, which is also

Fit comment in 66 chars.

  reply	other threads:[~2018-05-18 17:24 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-05-15 17:03 [tarantool-patches] [PATCH v6 0/4] sql: moved Checks to server Kirill Shcherbatov
2018-05-15 17:03 ` [tarantool-patches] [PATCH v6 1/4] sql: fix code style in sqlite3Pragma Kirill Shcherbatov
2018-05-15 17:03 ` [tarantool-patches] [PATCH v6 2/4] sql: remove SQL fields from Table and Column Kirill Shcherbatov
2018-05-17 17:25   ` [tarantool-patches] " n.pettik
2018-05-18 15:35     ` Kirill Shcherbatov
2018-05-18 17:24       ` n.pettik [this message]
2018-05-18 19:45         ` Kirill Shcherbatov
2018-05-18 20:13           ` n.pettik
2018-05-15 17:03 ` [tarantool-patches] [PATCH v6 3/4] sql: space_def* instead of Table* in Expr Kirill Shcherbatov
2018-05-16 12:33   ` [tarantool-patches] " Vladislav Shpilevoy
2018-05-16 13:10     ` Kirill Shcherbatov
2018-05-16 13:11       ` Vladislav Shpilevoy
     [not found]   ` <26E4269B-2BCB-42C3-8216-D51E290E4723@corp.mail.ru>
2018-05-18 15:26     ` Kirill Shcherbatov
2018-05-18 17:04       ` n.pettik
2018-05-21 12:48       ` [tarantool-patches] " Nikita Pettik
2018-05-15 17:03 ` [tarantool-patches] [PATCH v6 4/4] sql: remove Checks to server Kirill Shcherbatov
2018-05-16 17:59   ` [tarantool-patches] " Vladislav Shpilevoy
2018-05-16 11:52 ` [tarantool-patches] Re: [PATCH v6 0/4] sql: moved " Vladislav Shpilevoy
2018-05-16 13:13   ` Kirill Shcherbatov
2018-05-23  5:19 ` Kirill Yukhin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8524A570-B5A4-4053-A6AE-FA8D926DA15D@tarantool.org \
    --to=korablev@tarantool.org \
    --cc=kshcherbatov@tarantool.org \
    --cc=tarantool-patches@freelists.org \
    --subject='[tarantool-patches] Re: [PATCH v6 2/4] sql: remove SQL fields from Table and Column' \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox