1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

MDEV-19814 Assertion `update->n_fields < ulint(table->n_cols + table->n_v_cols)' on DELETE HISTORY

Turn off versioned_write for DELETE HISTORY.
This commit is contained in:
Aleksey Midenkov
2019-07-23 13:27:57 +03:00
parent 1a73444d57
commit f6d0d309fa
3 changed files with 30 additions and 1 deletions

View File

@ -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);