From: Kirill Shcherbatov <kshcherbatov@tarantool.org>
To: tarantool-patches@freelists.org
Cc: v.shpilevoy@tarantool.org,
Kirill Shcherbatov <kshcherbatov@tarantool.org>
Subject: [tarantool-patches] [PATCH v1 2/4] sql: fix sql len in tarantoolSqlite3RenameTrigger
Date: Thu, 31 May 2018 14:22:51 +0300 [thread overview]
Message-ID: <ddf2fbf92b7adf0c9d1adc1718855176048a5c72.1527765756.git.kshcherbatov@tarantool.org> (raw)
In-Reply-To: <cover.1527765756.git.kshcherbatov@tarantool.org>
In-Reply-To: <cover.1527765756.git.kshcherbatov@tarantool.org>
Part of #3273.
---
src/box/sql.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/box/sql.c b/src/box/sql.c
index 47d1739..eacb288 100644
--- a/src/box/sql.c
+++ b/src/box/sql.c
@@ -686,8 +686,8 @@ int tarantoolSqlite3RenameTrigger(const char *trig_name,
bool is_quoted = false;
trigger_stmt = rename_trigger(db, trigger_stmt, new_table_name, &is_quoted);
- uint32_t trigger_stmt_new_len = trigger_stmt_len + old_table_name_len -
- new_table_name_len + 2 * (!is_quoted);
+ uint32_t trigger_stmt_new_len = trigger_stmt_len + new_table_name_len -
+ old_table_name_len + 2 * (!is_quoted);
assert(trigger_stmt_new_len > 0);
key_len = mp_sizeof_array(2) + mp_sizeof_str(trig_name_len) +
mp_sizeof_map(1) + mp_sizeof_str(3) +
--
2.7.4
next prev parent reply other threads:[~2018-05-31 11:22 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-05-31 11:22 [tarantool-patches] [PATCH v1 0/4] sql: remove Triggers to server Kirill Shcherbatov
2018-05-31 11:22 ` [tarantool-patches] [PATCH v1 1/4] box: move db->pShchema init to sql_init Kirill Shcherbatov
2018-05-31 17:36 ` [tarantool-patches] " Vladislav Shpilevoy
2018-06-01 20:24 ` Kirill Shcherbatov
2018-05-31 11:22 ` Kirill Shcherbatov [this message]
2018-05-31 11:22 ` [tarantool-patches] [PATCH v1 3/4] box: introduce box_space_id_by_name Kirill Shcherbatov
2018-05-31 17:36 ` [tarantool-patches] " Vladislav Shpilevoy
2018-06-01 20:24 ` Kirill Shcherbatov
2018-06-04 13:27 ` Vladislav Shpilevoy
2018-06-04 19:21 ` Kirill Shcherbatov
2018-06-05 13:31 ` Vladislav Shpilevoy
2018-05-31 11:22 ` [tarantool-patches] [PATCH v1 4/4] sql: move Triggers to server Kirill Shcherbatov
2018-05-31 17:36 ` [tarantool-patches] " Vladislav Shpilevoy
2018-06-01 20:24 ` Kirill Shcherbatov
2018-06-01 20:25 ` Kirill Shcherbatov
2018-06-04 13:27 ` Vladislav Shpilevoy
2018-06-04 19:21 ` Kirill Shcherbatov
2018-06-05 13:31 ` Vladislav Shpilevoy
2018-06-09 9:32 ` Kirill Shcherbatov
2018-06-01 18:51 ` Konstantin Osipov
2018-05-31 17:36 ` [tarantool-patches] Re: [PATCH v1 0/4] sql: remove " Vladislav Shpilevoy
2018-06-04 13:27 ` Vladislav Shpilevoy
2018-06-05 13:31 ` Vladislav Shpilevoy
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ddf2fbf92b7adf0c9d1adc1718855176048a5c72.1527765756.git.kshcherbatov@tarantool.org \
--to=kshcherbatov@tarantool.org \
--cc=tarantool-patches@freelists.org \
--cc=v.shpilevoy@tarantool.org \
--subject='Re: [tarantool-patches] [PATCH v1 2/4] sql: fix sql len in tarantoolSqlite3RenameTrigger' \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox