Commit e20e28bd authored by Sergei Petrunia's avatar Sergei Petrunia

Fix for the previous cset: make first_explain_order_tab handle degenerate joins

parent a2f245e4
......@@ -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;
}
......
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