1
0
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:
bell@sanja.is.com.ua
2003-08-12 12:38:03 +03:00
parent c06786fa00
commit 6ac8e9b93c
6 changed files with 184 additions and 30 deletions

View File

@ -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
{