1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-21 21:22:27 +03:00

MDEV-19680:: Assertion `!table || (!table->read_set || bitmap_is_set(table->read_set, field_index) || (!(ptr >= table->record[0] && ptr < table->record[0] + table->s->reclength)))' or alike failed upon SELECT with mix of functions from simple view

Set read_set bitmap for view from the JOIN::all_fields list instead of JOIN::fields_list
as split_sum_func would have added items to the all_fields list.
This commit is contained in:
Varun Gupta
2019-12-26 17:14:51 +05:30
parent 9f7fcb9f25
commit 359d91aaee
3 changed files with 29 additions and 1 deletions

View File

@ -4177,7 +4177,7 @@ void SELECT_LEX::update_used_tables()
}
Item *item;
List_iterator_fast<Item> it(join->fields_list);
List_iterator_fast<Item> it(join->all_fields);
while ((item= it++))
{
item->update_used_tables();