[tarantool-patches] [PATCH 0/2] sql: refactor DELETE STMT translation

Kirill Yukhin kyukhin at tarantool.org
Wed May 16 18:24:52 MSK 2018


Issue: https://github.com/tarantool/tarantool/issues/3235
Branch: https://github.com/tarantool/tarantool/tree/kyukhin/gh-3235-refactor-delete-3

This two-patch set refactors SQL DELETE statements translation. It allows
not to create dummy key_defs and passing NULL instead to OP_OpenTEphemeral.
It also make box/sql/delete.c obey Tarantool coding style.

Part of #3235

Kirill Yukhin (2):
  sql: allow key_def to be NULL for ephemeral create
  sql: refactor delete routines

 src/box/sql.c           |    7 +-
 src/box/sql/build.c     |    6 +-
 src/box/sql/delete.c    | 1046 ++++++++++++++++++-----------------------------
 src/box/sql/fkey.c      |    3 +-
 src/box/sql/insert.c    |   33 +-
 src/box/sql/parse.y     |    2 +-
 src/box/sql/select.c    |   19 +-
 src/box/sql/sqliteInt.h |  202 ++++++++-
 src/box/sql/trigger.c   |   12 +-
 src/box/sql/update.c    |   16 +-
 src/box/sql/vdbe.c      |   11 +-
 src/box/sql/vdbeaux.c   |    7 +-
 12 files changed, 630 insertions(+), 734 deletions(-)

-- 
2.16.2





More information about the Tarantool-patches mailing list