summaryrefslogtreecommitdiff
path: root/sql/table.cc
diff options
context:
space:
mode:
authorAleksey Midenkov <midenok@gmail.com>2019-06-25 10:53:33 +0300
committerAleksey Midenkov <midenok@gmail.com>2019-07-09 10:01:54 +0300
commitcf7a8b9eb20e21baf2c9d81bac02e69acfabcd03 (patch)
treee17bb621429a341e351e2154ed77a980de1fce49 /sql/table.cc
parentb0dd048eddbdd9b086283a53a9a99b360e71e41a (diff)
downloadmariadb-git-cf7a8b9eb20e21baf2c9d81bac02e69acfabcd03.tar.gz
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.
Diffstat (limited to 'sql/table.cc')
-rw-r--r--sql/table.cc1
1 files changed, 1 insertions, 0 deletions
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);