diff options
author | Marko Mäkelä <marko.makela@mariadb.com> | 2017-05-29 13:15:36 +0300 |
---|---|---|
committer | Marko Mäkelä <marko.makela@mariadb.com> | 2017-05-29 13:15:36 +0300 |
commit | c2ef0bb6cecf034b32fced19d132432b90f3c4d5 (patch) | |
tree | 249c46d8685de6f97c674e9b14c9929bad526693 /sql/item_func.h | |
parent | 449a88e1c629b742e8be152c896c65a8bda5c817 (diff) | |
parent | 2cb94aa1b70fa01d9e5c1d8a7625415a0220a3d9 (diff) | |
download | mariadb-git-c2ef0bb6cecf034b32fced19d132432b90f3c4d5.tar.gz |
Merge 5.5 into 10.0
Diffstat (limited to 'sql/item_func.h')
-rw-r--r-- | sql/item_func.h | 29 |
1 files changed, 25 insertions, 4 deletions
diff --git a/sql/item_func.h b/sql/item_func.h index 0141619dced..5db92b6f3fe 100644 --- a/sql/item_func.h +++ b/sql/item_func.h @@ -1174,7 +1174,11 @@ public: longlong val_int(); const char *func_name() const { return "coercibility"; } void fix_length_and_dec() { max_length=10; maybe_null= 0; } - table_map not_null_tables() const { return 0; } + bool eval_not_null_tables(uchar *opt_arg) + { + not_null_tables_cache= 0; + return 0; + } }; class Item_func_locate :public Item_int_func @@ -1445,7 +1449,11 @@ public: } void cleanup(); Item_result result_type () const { return udf.result_type(); } - table_map not_null_tables() const { return 0; } + bool eval_not_null_tables(uchar *opt_arg) + { + not_null_tables_cache= 0; + return 0; + } bool is_expensive() { return 1; } virtual void print(String *str, enum_query_type query_type); }; @@ -1922,7 +1930,11 @@ public: bool is_expensive_processor(uchar *arg) { return TRUE; } enum Functype functype() const { return FT_FUNC; } const char *func_name() const { return "match"; } - table_map not_null_tables() const { return 0; } + bool eval_not_null_tables(uchar *opt_arg) + { + not_null_tables_cache= 0; + return 0; + } bool fix_fields(THD *thd, Item **ref); bool eq(const Item *, bool binary_cmp) const; /* The following should be safe, even if we compare doubles */ @@ -2159,6 +2171,11 @@ public: { return TRUE; } + bool eval_not_null_tables(uchar *opt_arg) + { + not_null_tables_cache= 0; + return 0; + } }; @@ -2206,7 +2223,11 @@ public: void fix_length_and_dec(); enum Item_result result_type () const { return last_value->result_type(); } const char *func_name() const { return "last_value"; } - table_map not_null_tables() const { return 0; } + bool eval_not_null_tables(uchar *opt_arg) + { + not_null_tables_cache= 0; + return 0; + } enum_field_types field_type() const { return last_value->field_type(); } bool const_item() const { return 0; } void evaluate_sideeffects(); |