mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
optimisation of independent ALL/ANY with aggregate function (WL#1115) (SCRUM)
This commit is contained in:
@ -920,6 +920,22 @@ public:
|
||||
bool send_data(List<Item> &items);
|
||||
};
|
||||
|
||||
/* used in independent ALL/ANY optimisation */
|
||||
class select_max_min_finder_subselect :public select_subselect
|
||||
{
|
||||
Item_cache *cache;
|
||||
bool (select_max_min_finder_subselect::*op)();
|
||||
bool fmax;
|
||||
public:
|
||||
select_max_min_finder_subselect(Item_subselect *item, bool mx)
|
||||
:select_subselect(item), cache(0), fmax(mx)
|
||||
{}
|
||||
bool send_data(List<Item> &items);
|
||||
bool cmp_real();
|
||||
bool cmp_int();
|
||||
bool cmp_str();
|
||||
};
|
||||
|
||||
/* EXISTS subselect interface class */
|
||||
class select_exists_subselect :public select_subselect
|
||||
{
|
||||
|
Reference in New Issue
Block a user