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 B4F6024CA8 for ; Wed, 16 May 2018 11:25:03 -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 wReTzy0o1pgk for ; Wed, 16 May 2018 11:25:03 -0400 (EDT) Received: from smtp35.i.mail.ru (smtp35.i.mail.ru [94.100.177.95]) (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 28C2524C9E for ; Wed, 16 May 2018 11:25:02 -0400 (EDT) From: Kirill Yukhin Subject: [tarantool-patches] [PATCH 0/2] sql: refactor DELETE STMT translation Date: Wed, 16 May 2018 18:24:52 +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: v.shpilevoy@tarantool.org Cc: tarantool-patches@freelists.org, Kirill Yukhin 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