From cf7a8b9eb20e21baf2c9d81bac02e69acfabcd03 Mon Sep 17 00:00:00 2001 From: Aleksey Midenkov Date: Tue, 25 Jun 2019 10:53:33 +0300 Subject: MDEV-16222 Assertion `0' failed in row_purge_remove_sec_if_poss_leaf on table with virtual columns and indexes Cause Stale thd->m_stmt_da->m_sql_errno which is from different invocation. Fix Reset error state before attempt to open table. --- sql/table.cc | 1 + 1 file changed, 1 insertion(+) (limited to 'sql/table.cc') diff --git a/sql/table.cc b/sql/table.cc index 8f60d3ff1d5..b58bcf45405 100644 --- a/sql/table.cc +++ b/sql/table.cc @@ -7875,6 +7875,7 @@ int TABLE::update_virtual_fields(handler *h, enum_vcol_update_mode update_mode) int TABLE::update_virtual_field(Field *vf) { + DBUG_ASSERT(!in_use->is_error()); Query_arena backup_arena; DBUG_ENTER("TABLE::update_virtual_field"); in_use->set_n_backup_active_arena(expr_arena, &backup_arena); -- cgit v1.2.1