From: olegrok@tarantool.org To: tarantool-patches@dev.tarantool.org, v.shpilevoy@tarantool.org, korablev@tarantool.org Cc: Oleg Babin <babinoleg@mail.ru> Subject: [Tarantool-patches] [PATCH 0/2] Introcude sequence.current Date: Fri, 6 Mar 2020 14:46:41 +0300 [thread overview] Message-ID: <cover.1583494653.git.babinoleg@mail.ru> (raw) From: Oleg Babin <babinoleg@mail.ru> This patchset exposes function for getting current value of sequence to lua. The first patch adds a new type of internal error - sequence error. The second one introduces "current" function for sequence object. Issue: https://github.com/tarantool/tarantool/issues/4752 Branch: https://github.com/tarantool/tarantool/tree/olegrok/4752-sequence-current @ChangeLog - Introduce "current" function for sequence object. It allows to get current value of a sequence. Oleg Babin (2): box: introduce internal sequence error box: introduce "current" for sequence src/box/box.cc | 14 ++++++++++++++ src/box/box.h | 12 ++++++++++++ src/box/lua/schema.lua | 4 ++++ src/box/lua/sequence.c | 12 ++++++++++++ src/box/sequence.c | 12 ++++++++---- src/box/sequence.h | 7 ++++--- src/box/sql/vdbe.c | 5 ++++- src/lib/core/diag.h | 2 ++ src/lib/core/exception.cc | 25 +++++++++++++++++++++++++ src/lib/core/exception.h | 6 ++++++ test/box/sequence.result | 32 ++++++++++++++++++++++++++++++++ test/box/sequence.test.lua | 12 ++++++++++++ 12 files changed, 135 insertions(+), 8 deletions(-) -- 2.23.0
next reply other threads:[~2020-03-06 11:48 UTC|newest] Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top 2020-03-06 11:46 olegrok [this message] 2020-03-06 11:46 ` [Tarantool-patches] [PATCH 1/2] box: introduce internal sequence error olegrok 2020-03-06 12:55 ` Nikita Pettik 2020-03-06 16:37 ` Oleg Babin 2020-03-06 11:46 ` [Tarantool-patches] [PATCH 2/2] box: introduce "current" for sequence olegrok 2020-03-06 13:00 ` Nikita Pettik
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=cover.1583494653.git.babinoleg@mail.ru \ --to=olegrok@tarantool.org \ --cc=babinoleg@mail.ru \ --cc=korablev@tarantool.org \ --cc=tarantool-patches@dev.tarantool.org \ --cc=v.shpilevoy@tarantool.org \ --subject='Re: [Tarantool-patches] [PATCH 0/2] Introcude sequence.current' \ /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