mirror of
https://github.com/MariaDB/server.git
synced 2026-04-30 12:15:32 +02:00
Fix for the previous cset: make first_explain_order_tab handle degenerate joins
This commit is contained in:
parent
a2f245e49f
commit
e20e28bd2e
1 changed files with 2 additions and 0 deletions
|
|
@ -8365,6 +8365,8 @@ JOIN_TAB *first_explain_order_tab(JOIN* join)
|
|||
{
|
||||
JOIN_TAB* tab;
|
||||
tab= join->join_tab;
|
||||
if (!tab)
|
||||
return NULL; /* Can happen when when the tables were optimized away */
|
||||
return (tab->bush_children) ? tab->bush_children->start : tab;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue