diff options
author | Varun Gupta <varun.gupta@mariadb.com> | 2019-12-26 17:14:51 +0530 |
---|---|---|
committer | Varun Gupta <varun.gupta@mariadb.com> | 2019-12-26 17:36:32 +0530 |
commit | 359d91aaeec25825b51b0a00f52f272edad7d6cc (patch) | |
tree | f2ac9e2614fd5eab6cb356381ac0c1000c61edf5 /sql | |
parent | 9f7fcb9f25238945e4fb8cc1a1f98e56457b714f (diff) | |
download | mariadb-git-359d91aaeec25825b51b0a00f52f272edad7d6cc.tar.gz |
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.
Diffstat (limited to 'sql')
-rw-r--r-- | sql/sql_lex.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sql_lex.cc b/sql/sql_lex.cc index a36a19357eb..1cd2a369d7a 100644 --- a/sql/sql_lex.cc +++ b/sql/sql_lex.cc @@ -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(); |