mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
MDEV-18467 Server crashes in fix_semijoin_strategies_for_picked_join_order
If a splittable materialized derived table / view T is used in a inner nest of an outer join with impossible ON condition then T is marked as a constant table. Yet the execution plan to build T is still searched for in spite of the fact that is not needed. So it should be set.
This commit is contained in:
@ -6689,6 +6689,7 @@ void set_position(JOIN *join,uint idx,JOIN_TAB *table,KEYUSE *key)
|
||||
next=tmp;
|
||||
}
|
||||
join->best_ref[idx]=table;
|
||||
join->positions[idx].spl_plan= 0;
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user