summaryrefslogtreecommitdiff
path: root/sql
diff options
context:
space:
mode:
authorAleksey Midenkov <midenok@gmail.com>2022-04-29 17:36:48 +0300
committerAleksey Midenkov <midenok@gmail.com>2022-04-29 17:36:48 +0300
commit182b8a29e7a1a0f0fbffeed39518c2c9dc026e13 (patch)
tree2966fa787035b2cee0cfe679f12ac64c3f66c3e8 /sql
parentddc416c60698e1f8939faff0cb09c5b5af8e03a7 (diff)
downloadmariadb-git-182b8a29e7a1a0f0fbffeed39518c2c9dc026e13.tar.gz
MDEV-20077 compilation fix
Diffstat (limited to 'sql')
-rw-r--r--sql/sql_base.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/sql/sql_base.cc b/sql/sql_base.cc
index 88eaf1bc0a5..e825c247fc1 100644
--- a/sql/sql_base.cc
+++ b/sql/sql_base.cc
@@ -751,9 +751,11 @@ void close_thread_tables(THD *thd)
table->s->table_name.str, (ulong) table->query_id));
if (thd->locked_tables_mode)
{
+#ifdef WITH_PARTITION_STORAGE_ENGINE
if (table->part_info && table->part_info->vers_require_hist_part(thd) &&
!thd->stmt_arena->is_stmt_prepare())
table->part_info->vers_check_limit(thd);
+#endif
table->vcol_cleanup_expr(thd);
}
if (thd->locked_tables_mode <= LTM_LOCK_TABLES ||