mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
[2/2] MDEV-18166 ASSERT_COLUMN_MARKED_FOR_READ failed on tables with vcols
Several different test cases were failing under the same reason: the fields in a vcol expression were not marked during marking columns of a key contatining virtual column for read. Fix: make marking columns of a key for read a special case where register_field_in_read_map() is done instead of plain bitmap_set_bit(). Some test cases are only reproducible in 10.4+, but the fix is applicable to 10.2+
This commit is contained in:
@ -1423,6 +1423,7 @@ public:
|
||||
{ return prepare_for_keyread(index, &tmp_set); }
|
||||
void mark_columns_used_by_index(uint index, MY_BITMAP *map);
|
||||
void mark_columns_used_by_index_no_reset(uint index, MY_BITMAP *map);
|
||||
void mark_columns_used_by_index_for_read_no_reset(uint index);
|
||||
void restore_column_maps_after_keyread(MY_BITMAP *backup);
|
||||
void mark_auto_increment_column(void);
|
||||
void mark_columns_needed_for_update(void);
|
||||
|
Reference in New Issue
Block a user