mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
independent ALL/ANY subselect on top of WHERE clause (subselect without GROUP BY or aggregate functions) optimisation
(SCRUM) (WL#1086) mysql-test/r/subselect.result: new optimisation tests mysql-test/t/subselect.test: new optimisation tests sql/item_cmpfunc.cc: new NOT sql/item_cmpfunc.h: new NOT sql/item_subselect.cc: independent ALL/ANY in top of WHERE clause optimisation sql/item_subselect.h: independent ALL/ANY in top of WHERE clause optimisation sql/item_sum.cc: prevent fixlields call for parameters of min/max if it is already done sql/sql_union.cc: removed debuging print sql/sql_yacc.yy: support of ALL optimisation
This commit is contained in:
@ -155,6 +155,16 @@ public:
|
||||
const char *func_name() const { return "not"; }
|
||||
};
|
||||
|
||||
class Item_func_not_all :public Item_func_not
|
||||
{
|
||||
bool abort_on_null;
|
||||
public:
|
||||
Item_func_not_all(Item *a) :Item_func_not(a), abort_on_null(0) {}
|
||||
virtual void top_level_item() { abort_on_null= 1; }
|
||||
bool top_level() { return abort_on_null; }
|
||||
longlong val_int();
|
||||
};
|
||||
|
||||
class Item_func_eq :public Item_bool_rowready_func2
|
||||
{
|
||||
public:
|
||||
|
Reference in New Issue
Block a user