mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
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.
This commit is contained in:
@@ -8232,6 +8232,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);
|
||||
|
Reference in New Issue
Block a user