Skip to content

Commit

Permalink
sql: fix sql len in tarantoolSqlite3RenameTrigger
Browse files Browse the repository at this point in the history
Part of #3273.
  • Loading branch information
kshcherbatov committed May 31, 2018
1 parent 9c68415 commit 9e6efc9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/box/sql.c
Expand Up @@ -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) +
Expand Down

0 comments on commit 9e6efc9

Please sign in to comment.