mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
cleanup: remove TABLE::vcol_set
use a read_set instead. a bit in the read_set means "the field value is needed" (read or generated, whatever it takes).
This commit is contained in:
@ -2536,17 +2536,10 @@ int multi_update::do_updates()
|
||||
not its dependencies
|
||||
*/
|
||||
while(TABLE *tbl= check_opt_it++)
|
||||
{
|
||||
if (tbl->vcol_set)
|
||||
{
|
||||
bitmap_clear_all(tbl->vcol_set);
|
||||
for (Field **vf= tbl->vfield; *vf; vf++)
|
||||
{
|
||||
if (Field **vf= tbl->vfield)
|
||||
for (; *vf; vf++)
|
||||
if (bitmap_is_set(tbl->read_set, (*vf)->field_index))
|
||||
tbl->mark_virtual_col(*vf);
|
||||
}
|
||||
}
|
||||
}
|
||||
(*vf)->vcol_info->expr->walk(&Item::register_field_in_read_map, 1, 0);
|
||||
|
||||
for (cur_table= update_tables; cur_table; cur_table= cur_table->next_local)
|
||||
{
|
||||
|
Reference in New Issue
Block a user