From: "n.pettik" <korablev@tarantool.org>
To: tarantool-patches@freelists.org
Cc: Kirill Shcherbatov <kshcherbatov@tarantool.org>
Subject: [tarantool-patches] Re: [PATCH v1 3/3] sql: get rid of Column structure
Date: Wed, 18 Jul 2018 23:13:00 +0300 [thread overview]
Message-ID: <4A0B514A-C0DA-406F-BD14-B1F11D4357EF@tarantool.org> (raw)
In-Reply-To: <72990d0ecbba60f0551c254eb33a3282b645cd5d.1531932662.git.kshcherbatov@tarantool.org>
Again: why did this patch trapped in patch-set? All three patches seem to be independent.
> On 18 Jul 2018, at 19:52, Kirill Shcherbatov <kshcherbatov@tarantool.org> wrote:
>
> Get rid of is_primkey in Column structure as it become
Typo: ‘becomes’.
> redundant. Moved the last member coll with collation pointer
> to field_def structure.
Why do you need to move collation ptr to field_def? It already features collation id,
so you can always get pointer to it by simple lookup. It would make sense if it was
utilised everywhere. But I see assignment only in sqlite3SelectAddColumnTypeAndCollation()
and no real usages..Lets remove it at all.
> @@ -1692,22 +1680,9 @@ sqlite3EndTable(Parse * pParse, /* Parse context */
> }
> }
>
> - /* Set default on_nullable action if required. */
> - struct field_def *field = p->def->fields;
> - for (uint32_t i = 0; i < p->def->field_count; ++i, ++field) {
> - if (field->nullable_action == on_conflict_action_MAX) {
> - field->nullable_action = ON_CONFLICT_ACTION_NONE;
> - field->is_nullable = true;
> - }
> - }
> -
> - if (check_on_conflict_replace_entries(p)) {
> - sqlite3ErrorMsg(pParse,
> - "only PRIMARY KEY constraint can "
> - "have ON CONFLICT REPLACE clause "
> - "- %s", p->def->name);
Here you are simply fixing changes made in first patch, so mb it is better to
move them to first patch?
next prev parent reply other threads:[~2018-07-18 20:13 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-07-18 16:52 [tarantool-patches] [PATCH v1 0/3] sql: restrict nullable action definitions Kirill Shcherbatov
2018-07-18 16:52 ` [tarantool-patches] [PATCH v1 1/3] " Kirill Shcherbatov
2018-07-18 20:12 ` [tarantool-patches] " n.pettik
2018-07-19 8:12 ` Kirill Shcherbatov
2018-07-20 2:39 ` n.pettik
2018-07-20 7:29 ` Kirill Shcherbatov
2018-07-23 8:31 ` Kirill Shcherbatov
2018-07-23 16:53 ` Kirill Shcherbatov
2018-07-23 19:27 ` n.pettik
2018-07-18 16:52 ` [tarantool-patches] [PATCH v1 2/3] sql: fixed possible leak in sqlite3EndTable Kirill Shcherbatov
2018-07-18 20:12 ` [tarantool-patches] " n.pettik
2018-07-18 16:52 ` [tarantool-patches] [PATCH v1 3/3] sql: get rid of Column structure Kirill Shcherbatov
2018-07-18 20:13 ` n.pettik [this message]
2018-07-19 8:12 ` [tarantool-patches] " Kirill Shcherbatov
2018-07-19 8:39 ` Vladislav Shpilevoy
2018-07-19 10:17 ` Kirill Shcherbatov
2018-07-20 2:43 ` n.pettik
2018-07-24 15:26 ` [tarantool-patches] Re: [PATCH v1 0/3] sql: restrict nullable action definitions 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=4A0B514A-C0DA-406F-BD14-B1F11D4357EF@tarantool.org \
--to=korablev@tarantool.org \
--cc=kshcherbatov@tarantool.org \
--cc=tarantool-patches@freelists.org \
--subject='[tarantool-patches] Re: [PATCH v1 3/3] sql: get rid of Column structure' \
/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