diff options
author | Aleksey Midenkov <midenok@gmail.com> | 2019-07-23 13:27:57 +0300 |
---|---|---|
committer | Aleksey Midenkov <midenok@gmail.com> | 2019-07-25 21:11:15 +0300 |
commit | f6d0d309fa4ffe1d5890c09447d947103143a68a (patch) | |
tree | 8d097090d1b507ea51b90fb72de4f34cab2ee1f6 /sql/sql_delete.cc | |
parent | 1a73444d577ee54ac3ecf752e8436091e932d212 (diff) | |
download | mariadb-git-f6d0d309fa4ffe1d5890c09447d947103143a68a.tar.gz |
MDEV-19814 Assertion `update->n_fields < ulint(table->n_cols + table->n_v_cols)' on DELETE HISTORY
Turn off versioned_write for DELETE HISTORY.
Diffstat (limited to 'sql/sql_delete.cc')
-rw-r--r-- | sql/sql_delete.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sql/sql_delete.cc b/sql/sql_delete.cc index d31fc127e3c..eee835efcef 100644 --- a/sql/sql_delete.cc +++ b/sql/sql_delete.cc @@ -354,7 +354,10 @@ bool mysql_delete(THD *thd, TABLE_LIST *table_list, COND *conds, select_lex->item_list, &conds, &delete_while_scanning)) DBUG_RETURN(TRUE); - + + if (delete_history) + table->vers_write= false; + if (with_select) (void) result->prepare(select_lex->item_list, NULL); |