Merge 10.2 into 10.3

This commit is contained in:
Marko Mäkelä 2019-03-08 00:26:55 +02:00
commit 2d0dd62cf7
22 changed files with 261 additions and 68 deletions

View file

@ -4984,6 +4984,23 @@ Item *Item_cond::build_clone(THD *thd)
}
bool Item_cond::excl_dep_on_table(table_map tab_map)
{
if (used_tables() & OUTER_REF_TABLE_BIT)
return false;
if (!(used_tables() & ~tab_map))
return true;
List_iterator_fast<Item> li(list);
Item *item;
while ((item= li++))
{
if (!item->excl_dep_on_table(tab_map))
return false;
}
return true;
}
bool Item_cond::excl_dep_on_grouping_fields(st_select_lex *sel)
{
List_iterator_fast<Item> li(list);