mirror of
https://github.com/MariaDB/server.git
synced 2025-09-02 09:41:40 +03:00
reporting empty result added in case of max/min optimisation of ALL/ANY/SOME subqueries
fixed null processing in NOT operation used in ALL subquery (Bug #6247)
This commit is contained in:
@@ -5114,9 +5114,9 @@ Item * all_any_subquery_creator(Item *left_expr,
|
||||
Item_allany_subselect *it=
|
||||
new Item_allany_subselect(left_expr, (*cmp)(all), select_lex, all);
|
||||
if (all)
|
||||
return it->upper_not= new Item_func_not_all(it); /* ALL */
|
||||
return it->upper_item= new Item_func_not_all(it); /* ALL */
|
||||
|
||||
return it; /* ANY/SOME */
|
||||
return it->upper_item= new Item_func_nop_all(it); /* ANY/SOME */
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user