Skip to content

Commit 9fa6589

Browse files
committed
bugfix: TABLE::mark_columns_used_by_index_no_reset
it should not mark base columns that a vcol depends on, because keyread (on a vcol) will not read them
1 parent 4dd7e11 commit 9fa6589

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

sql/table.cc

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6146,13 +6146,7 @@ void TABLE::mark_columns_used_by_index_no_reset(uint index, MY_BITMAP *bitmap)
61466146
KEY_PART_INFO *key_part_end= (key_part +
61476147
key_info[index].user_defined_key_parts);
61486148
for (;key_part != key_part_end; key_part++)
6149-
{
61506149
bitmap_set_bit(bitmap, key_part->fieldnr-1);
6151-
if (key_part->field->vcol_info &&
6152-
key_part->field->vcol_info->expr)
6153-
key_part->field->vcol_info->
6154-
expr->walk(&Item::register_field_in_bitmap, 1, bitmap);
6155-
}
61566150
}
61576151

61586152

0 commit comments

Comments
 (0)