From: Vladislav Shpilevoy via Tarantool-patches <tarantool-patches@dev.tarantool.org> To: imeevma@tarantool.org Cc: tarantool-patches@dev.tarantool.org Subject: Re: [Tarantool-patches] [PATCH v2 03/15] sql: remove AggStep0 and OP_BuiltinFunction0 Date: Thu, 23 Sep 2021 00:46:01 +0200 [thread overview] Message-ID: <aed85a21-dc1f-e4f7-502b-515b25891a01@tarantool.org> (raw) In-Reply-To: <8ecde75f62af960261dafcbca41f8aba9b7e3e9e.1632217203.git.imeevma@gmail.com> Hi! Thanks for the fixes! > diff --git a/src/box/sql/select.c b/src/box/sql/select.c > index 92e40aef6..459325a88 100644 > --- a/src/box/sql/select.c > +++ b/src/box/sql/select.c > @@ -6744,3 +6749,21 @@ sql_expr_extract_select(struct Parse *parser, struct Select *select) > parser->parsed_ast.expr = > sqlExprDup(parser->db, expr_list->a->pExpr, 0); > } > + > +struct sql_context * > +sql_context_new(struct Vdbe *vdbe, struct func *func, uint32_t argc) > +{ Could you please introduce sql_context_delete() and use it where appropriate? I am sorry I didn't notice it first time. > + uint32_t size = sizeof(struct sql_context); > + if (argc > 1) > + size += (argc - 1) * sizeof(struct Mem *); > + struct sql_context *ctx = sqlDbMallocRawNN(sql_get(), size); > + if (ctx == NULL) > + return NULL; > + ctx->pOut = NULL; > + ctx->func = func; > + ctx->is_aborted = false; > + ctx->skipFlag = 0; > + ctx->pVdbe = vdbe; > + ctx->iOp = 0; > + return ctx; > +}
next prev parent reply other threads:[~2021-09-22 22:46 UTC|newest] Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top 2021-09-21 10:58 [Tarantool-patches] [PATCH v2 00/15] sql: reworks aggregate functions Mergen Imeev via Tarantool-patches 2021-09-21 10:59 ` [Tarantool-patches] [PATCH v2 03/15] sql: remove AggStep0 and OP_BuiltinFunction0 Mergen Imeev via Tarantool-patches 2021-09-22 22:46 ` Vladislav Shpilevoy via Tarantool-patches [this message] 2021-09-25 10:58 ` Mergen Imeev via Tarantool-patches
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=aed85a21-dc1f-e4f7-502b-515b25891a01@tarantool.org \ --to=tarantool-patches@dev.tarantool.org \ --cc=imeevma@tarantool.org \ --cc=v.shpilevoy@tarantool.org \ --subject='Re: [Tarantool-patches] [PATCH v2 03/15] sql: remove AggStep0 and OP_BuiltinFunction0' \ /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