[tarantool-patches] [PATCH v2 0/4] sql: get rid off sqlite3NestedParse
Kirill Shcherbatov
kshcherbatov at tarantool.org
Tue Jul 10 20:08:07 MSK 2018
As we are going to implement parser as separate library,
we should get rid off sqlite3NestedParse calls.
Last usages in statistics update could be trivially rewrited
to do not start parsing. We manually build AST structures
simmilar to parser did and manually call sql_table_delete_from.
Finilly, I've removed all sqlite3NestedParse mentionings.
Also slightly refactored OP_Open{Write,Read} opcodes and
vdbe_emit_open_cursor function to use index_id instead of tnum.
Branch: http://github.com/tarantool/tarantool/tree/kshch/gh-3496-no-nested-parse
Issue: https://github.com/tarantool/tarantool/issues/3496
Kirill Shcherbatov (3):
sql: get rid off sqlite3NestedParse in clean stats
sql: remove usless sqlite3NestedParse function
sql: refactor vdbe_emit_open_cursor calls
Vladislav Shpilevoy (1):
sql: remove OP_LoadPtr
src/box/sql/analyze.c | 110 +++++++++++---------------
src/box/sql/build.c | 202 ++++++++++++++++++------------------------------
src/box/sql/delete.c | 32 ++------
src/box/sql/expr.c | 5 +-
src/box/sql/fkey.c | 3 +-
src/box/sql/insert.c | 120 ++++++++++++++--------------
src/box/sql/parse.y | 12 +--
src/box/sql/pragma.c | 36 +++++----
src/box/sql/select.c | 4 +-
src/box/sql/sqliteInt.h | 39 +++++-----
src/box/sql/tokenize.c | 2 +-
src/box/sql/trigger.c | 45 ++++-------
src/box/sql/update.c | 15 ++--
src/box/sql/vdbe.c | 73 +++--------------
src/box/sql/where.c | 10 ++-
15 files changed, 272 insertions(+), 436 deletions(-)
--
2.7.4
More information about the Tarantool-patches
mailing list