Skip to content

Commit 182b8a2

Browse files
committed
MDEV-20077 compilation fix
1 parent ddc416c commit 182b8a2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

sql/sql_base.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -751,9 +751,11 @@ void close_thread_tables(THD *thd)
751751
table->s->table_name.str, (ulong) table->query_id));
752752
if (thd->locked_tables_mode)
753753
{
754+
#ifdef WITH_PARTITION_STORAGE_ENGINE
754755
if (table->part_info && table->part_info->vers_require_hist_part(thd) &&
755756
!thd->stmt_arena->is_stmt_prepare())
756757
table->part_info->vers_check_limit(thd);
758+
#endif
757759
table->vcol_cleanup_expr(thd);
758760
}
759761
if (thd->locked_tables_mode <= LTM_LOCK_TABLES ||

0 commit comments

Comments
 (0)