diff options
author | unknown <mskold@mysql.com> | 2005-01-03 15:20:06 +0100 |
---|---|---|
committer | unknown <mskold@mysql.com> | 2005-01-03 15:20:06 +0100 |
commit | 3d0875cb3e3c2b903b059061c3093fdb91c739e4 (patch) | |
tree | 0c666b9c040e467c1cfce74396235ecdd24ed904 /sql/item_cmpfunc.h | |
parent | 39350d70993d587ef84d14a1478f0562fee300cb (diff) | |
parent | 6e8bc54f7e0bce04835c4b72e6e3c763c1f608ff (diff) | |
download | mariadb-git-3d0875cb3e3c2b903b059061c3093fdb91c739e4.tar.gz |
Merge
ndb/src/ndbapi/NdbDictionaryImpl.hpp:
Auto merged
sql/ha_ndbcluster.cc:
Auto merged
sql/item.h:
Auto merged
sql/item_cmpfunc.cc:
Auto merged
sql/item_cmpfunc.h:
Auto merged
sql/item_func.cc:
Auto merged
sql/sql_class.h:
Auto merged
sql/sql_select.cc:
Auto merged
Diffstat (limited to 'sql/item_cmpfunc.h')
-rw-r--r-- | sql/item_cmpfunc.h | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/sql/item_cmpfunc.h b/sql/item_cmpfunc.h index d9196eeb5eb..a2e244cfae2 100644 --- a/sql/item_cmpfunc.h +++ b/sql/item_cmpfunc.h @@ -231,6 +231,7 @@ public: Item *neg_transformer(THD *thd); }; +class Item_maxmin_subselect; /* The class Item_func_trig_cond is used for guarded predicates @@ -267,19 +268,40 @@ public: class Item_func_not_all :public Item_func_not { + /* allow to check presence od values in max/min optimisation */ + Item_sum_hybrid *test_sum_item; + Item_maxmin_subselect *test_sub_item; + bool abort_on_null; public: bool show; - Item_func_not_all(Item *a) :Item_func_not(a), abort_on_null(0), show(0) {} + Item_func_not_all(Item *a) + :Item_func_not(a), test_sum_item(0), test_sub_item(0), abort_on_null(0), + show(0) + {} virtual void top_level_item() { abort_on_null= 1; } bool top_level() { return abort_on_null; } longlong val_int(); enum Functype functype() const { return NOT_ALL_FUNC; } const char *func_name() const { return "<not>"; } void print(String *str); + void set_sum_test(Item_sum_hybrid *item) { test_sum_item= item; }; + void set_sub_test(Item_maxmin_subselect *item) { test_sub_item= item; }; + bool empty_underlying_subquery(); }; + +class Item_func_nop_all :public Item_func_not_all +{ +public: + + Item_func_nop_all(Item *a) :Item_func_not_all(a) {} + longlong val_int(); + const char *func_name() const { return "<nop>"; } +}; + + class Item_func_eq :public Item_bool_rowready_func2 { public: |