Commit ffc384e0 authored by Varun Gupta's avatar Varun Gupta

MDEV-23804: Server crashes in st_select_lex::collect_grouping_fields_for_derived

The issue here was we were trying to push an extracted condition for a view into the
underlying table value constructor inside the view.
The fix would be to not push conditions into table value constructors.
parent fd5e103a
...@@ -1453,6 +1453,8 @@ bool pushdown_cond_for_derived(THD *thd, Item *cond, TABLE_LIST *derived) ...@@ -1453,6 +1453,8 @@ bool pushdown_cond_for_derived(THD *thd, Item *cond, TABLE_LIST *derived)
for (; sl; sl= sl->next_select()) for (; sl; sl= sl->next_select())
{ {
Item *extracted_cond_copy; Item *extracted_cond_copy;
if (!sl->cond_pushdown_is_allowed())
continue;
/* /*
For each select of the unit except the last one For each select of the unit except the last one
create a clone of extracted_cond create a clone of extracted_cond
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment