From: Vladislav Shpilevoy <v.shpilevoy@tarantool.org> To: Kirill Shcherbatov <kshcherbatov@tarantool.org>, tarantool-patches@freelists.org Subject: [tarantool-patches] Re: [PATCH v1 1/1] sql: refactor vdbe_emit_open_cursor calls Date: Tue, 10 Jul 2018 17:59:08 +0300 [thread overview] Message-ID: <665e7af1-3a3c-ed51-e9e8-097811a4a7a6@tarantool.org> (raw) In-Reply-To: <eb09b1c3-ffba-c392-aecf-d9b215bf04b0@tarantool.org> >> 2. vdbe_emit_open_cursor has outdated comment in the header. > * @param parse_context Parse context. > * @param cursor Number of cursor to be created. > - * @param index_id Encoded index id (encoding is void actually, so > - * pas it as is). In future will be replaced with pointer > - * to struct index. > + * @param index_id index id. In future will be replaced with > + * pointer to struct index. > * @retval address of last opcode. 1. Still out dated. Where is '@param space'? 2. Why vdbe_emit_open_cursor opens the cursor using index_id, but opcode OP_OpenRead/Write still uses it as tnum? > ========================================= > > Made vdbe_emit_open_cursor calls consistent: > now it uses index id everywhere. > This required to change a way to detect that > VDBE has openned Read cursor to specified table > in vdbe_has_table_read to write result of insert > in temp table if required. > --- > src/box/sql/analyze.c | 3 +- > src/box/sql/build.c | 3 +- > src/box/sql/expr.c | 5 ++- > src/box/sql/fkey.c | 3 +- > src/box/sql/insert.c | 96 +++++++++++++++++++++++++++++-------------------- > src/box/sql/select.c | 4 +-- > src/box/sql/sqliteInt.h | 5 ++- > src/box/sql/where.c | 10 ++++-- > 8 files changed, 77 insertions(+), 52 deletions(-) >
next prev parent reply other threads:[~2018-07-10 14:59 UTC|newest] Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top 2018-07-09 12:42 [tarantool-patches] " Kirill Shcherbatov 2018-07-10 11:48 ` [tarantool-patches] " Vladislav Shpilevoy 2018-07-10 13:44 ` Kirill Shcherbatov 2018-07-10 14:59 ` Vladislav Shpilevoy [this message] 2018-07-10 15:45 ` Kirill Shcherbatov 2018-07-10 15:56 ` Vladislav Shpilevoy 2018-07-10 16:37 ` Kirill Shcherbatov 2018-07-10 16:52 ` Vladislav Shpilevoy 2018-07-10 13:45 ` [tarantool-patches] [PATCH v1 2/2] sql: remove OP_LoadPtr Kirill Shcherbatov 2018-07-10 14:59 ` [tarantool-patches] " Vladislav Shpilevoy
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=665e7af1-3a3c-ed51-e9e8-097811a4a7a6@tarantool.org \ --to=v.shpilevoy@tarantool.org \ --cc=kshcherbatov@tarantool.org \ --cc=tarantool-patches@freelists.org \ --subject='[tarantool-patches] Re: [PATCH v1 1/1] sql: refactor vdbe_emit_open_cursor calls' \ /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