summaryrefslogtreecommitdiff
path: root/sql
diff options
context:
space:
mode:
Diffstat (limited to 'sql')
-rw-r--r--sql/table.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/sql/table.cc b/sql/table.cc
index 404c43bef17..03117f8ec63 100644
--- a/sql/table.cc
+++ b/sql/table.cc
@@ -6605,6 +6605,8 @@ void TABLE::mark_columns_used_by_check_constraints(void)
void TABLE::mark_check_constraint_columns_for_read(void)
{
bitmap_union(read_set, s->check_set);
+ if (vcol_set)
+ bitmap_union(vcol_set, s->check_set);
}