MDEV-9462: Out of memory using explain on 2 empty tables

Fixed adding derived tables items to outer one.
This commit is contained in:
Oleksandr Byelkin 2016-02-03 17:15:22 +01:00
commit 41021c0254
5 changed files with 604 additions and 11 deletions

View file

@ -1060,6 +1060,13 @@ private:
index_clause_map current_index_hint_clause;
/* a list of USE/FORCE/IGNORE INDEX */
List<Index_hint> *index_hints;
public:
inline void add_where_field(st_select_lex *sel)
{
DBUG_ASSERT(this != sel);
select_n_where_fields+= sel->select_n_where_fields;
}
};
typedef class st_select_lex SELECT_LEX;