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

MDEV-28566 Assertion `!expr->is_fixed()' failed in bool virtual_column_info::fix_session_expr(THD*)

The problem was that table->vcol_cleanup_expr() was not called in case
of error in open_table().
This commit is contained in:
Monty
2023-11-24 20:54:43 +02:00
parent 08e6431c8c
commit 06f7ed4dcd
3 changed files with 75 additions and 0 deletions

View File

@ -2191,6 +2191,7 @@ retry_share:
if (thd->has_read_only_protection())
{
MYSQL_UNBIND_TABLE(table->file);
table->vcol_cleanup_expr(thd);
tc_release_table(table);
DBUG_RETURN(TRUE);
}
@ -2210,6 +2211,7 @@ retry_share:
if (result)
{
MYSQL_UNBIND_TABLE(table->file);
table->vcol_cleanup_expr(thd);
tc_release_table(table);
DBUG_RETURN(TRUE);
}