mirror of
https://github.com/MariaDB/server.git
synced 2026-04-23 08:45:33 +02:00
Merge 10.2 into 10.3
This commit is contained in:
commit
2d0dd62cf7
22 changed files with 261 additions and 68 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue