From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 6BA362A93A for ; Fri, 24 Aug 2018 06:57:07 -0400 (EDT) Received: from turing.freelists.org ([127.0.0.1]) by localhost (turing.freelists.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 4m2qT5fxJKjr for ; Fri, 24 Aug 2018 06:57:07 -0400 (EDT) Received: from smtp37.i.mail.ru (smtp37.i.mail.ru [94.100.177.97]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTPS id CCBCA202EB for ; Fri, 24 Aug 2018 06:57:06 -0400 (EDT) From: imeevma@tarantool.org Subject: [tarantool-patches] [PATCH v3 0/2] sql: return last_insert_id via IPROTO Date: Fri, 24 Aug 2018 13:57:03 +0300 Message-Id: Sender: tarantool-patches-bounce@freelists.org Errors-to: tarantool-patches-bounce@freelists.org Reply-To: tarantool-patches@freelists.org List-help: List-unsubscribe: List-software: Ecartis version 1.0.0 List-Id: tarantool-patches List-subscribe: List-owner: List-post: List-archive: To: tarantool-patches@freelists.org, korablev@tarantool.org Cc: v.shpilevoy@tarantool.org This patch-set add new data to metadata returned via IPROTO after some SQL statements. Branch: https://github.com/tarantool/tarantool/tree/imeevma/gh-2618-return-generated-columns-and-values Issue: https://github.com/tarantool/tarantool/issues/2618 Mergen Imeev (2): sql: move autoincrement in vdbe sql: return last_insert_id via IPROTO src/box/execute.c | 11 +- src/box/execute.h | 1 + src/box/lua/net_box.c | 10 +- src/box/session.cc | 1 + src/box/session.h | 5 + src/box/sql/func.c | 19 ++++ src/box/sql/insert.c | 13 ++- src/box/sql/vdbe.c | 18 +++- src/box/sql/vdbeInt.h | 5 + test/sql-tap/insert3.test.lua | 27 ++++- test/sql/errinj.result | 3 +- test/sql/gh-2981-check-autoinc.result | 13 +++ test/sql/gh-2981-check-autoinc.test.lua | 6 +- test/sql/iproto.result | 181 ++++++++++++++++++++++++++------ test/sql/iproto.test.lua | 20 ++++ 15 files changed, 289 insertions(+), 44 deletions(-) -- 2.7.4