[patches] [PATCH 0/4] sql: introduce 'return_tuple' option for execute()
Vladislav Shpilevoy
v.shpilevoy at tarantool.org
Wed Mar 14 00:49:23 MSK 2018
Branch: http://github.com/tarantool/tarantool/tree/gh-2618-last-inserted-sql
Issue: https://github.com/tarantool/tarantool/issues/2618
Allow to a user to request a last updated/inserted/replaced
tuple on SQL DML.
Optimize some SQL protocol codes: they are still in alpha, so it
is ok.
Vladislav Shpilevoy (4):
sql: Return last updated tuple if requested
sql: introduce 'return_tuple' option for execute()
iproto: move IPROTO_SQL_ROW_COUNT to enum sql_info_key
iproto: rename IPROTO_SQL_OPTIONS to IPROTO_OPTIONS
src/box/errcode.h | 2 +-
src/box/execute.c | 126 ++++++++++++++++++++++++++++++++++++++------
src/box/execute.h | 26 ++++++++-
src/box/iproto_constants.c | 8 ++-
src/box/iproto_constants.h | 7 ++-
src/box/lua/net_box.c | 30 +++++++++--
src/box/lua/net_box.lua | 37 +++++++------
src/box/lua/sql.c | 9 ++--
src/box/sql.c | 25 +++++----
src/box/sql.h | 22 ++++++--
src/box/sql/analyze.c | 4 +-
src/box/sql/legacy.c | 2 +-
src/box/sql/sqlite3.h | 31 ++++++++---
src/box/sql/tarantoolInt.h | 4 +-
src/box/sql/vdbe.c | 12 +++--
src/box/sql/vdbeInt.h | 5 ++
src/box/sql/vdbeapi.c | 6 ++-
src/box/sql/vdbeaux.c | 44 ++++++++++------
test/box/misc.result | 33 ++++++------
test/sql/iproto.result | 67 ++++++++++++++++++++++-
test/sql/iproto.test.lua | 22 ++++++++
test/unit/sql-bitvec.result | 39 --------------
22 files changed, 408 insertions(+), 153 deletions(-)
delete mode 100644 test/unit/sql-bitvec.result
--
2.14.3 (Apple Git-98)
More information about the Tarantool-patches
mailing list