From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtpng3.m.smailru.net (smtpng3.m.smailru.net [94.100.177.149]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dev.tarantool.org (Postfix) with ESMTPS id 79648469719 for ; Fri, 6 Mar 2020 14:48:28 +0300 (MSK) From: olegrok@tarantool.org Date: Fri, 6 Mar 2020 14:46:41 +0300 Message-Id: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [Tarantool-patches] [PATCH 0/2] Introcude sequence.current List-Id: Tarantool development patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: tarantool-patches@dev.tarantool.org, v.shpilevoy@tarantool.org, korablev@tarantool.org Cc: Oleg Babin From: Oleg Babin 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