diff options
author | unknown <timour@askmonty.org> | 2012-09-17 11:13:46 +0300 |
---|---|---|
committer | unknown <timour@askmonty.org> | 2012-09-17 11:13:46 +0300 |
commit | 0bc89929ef5ac431e5a8b64d30e1f5cdb25aedcc (patch) | |
tree | d30e5013563dd6bce66d3941a80553c1f8990a0b /sql/item_subselect.h | |
parent | 83bdf56ebdea39ab917b802d6480612a251e29ca (diff) | |
parent | b917fb63a638fd117e1e52d3bc29b57a81124fea (diff) | |
download | mariadb-git-0bc89929ef5ac431e5a8b64d30e1f5cdb25aedcc.tar.gz |
- Merged the fix for bug lp:1009187, mdev-373.
- Performed some refactoring and simplification that was enabled and required by the merge.
Diffstat (limited to 'sql/item_subselect.h')
-rw-r--r-- | sql/item_subselect.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sql/item_subselect.h b/sql/item_subselect.h index 0735df2fb5c..d75e415c347 100644 --- a/sql/item_subselect.h +++ b/sql/item_subselect.h @@ -575,6 +575,7 @@ public: /* Inform 'this' that it was computed, and contains a valid result. */ void set_first_execution() { if (first_execution) first_execution= FALSE; } bool expr_cache_is_needed(THD *thd); + inline bool left_expr_has_null(); int optimize(double *out_rows, double *cost); /* @@ -853,7 +854,6 @@ protected: expression is NULL. */ bool empty_result_set; - bool null_keypart; /* TRUE <=> constructed search tuple has a NULL */ public: // constructor can assign THD because it will be called after JOIN::prepare @@ -877,8 +877,7 @@ public: bool no_tables(); int index_lookup(); /* TIMOUR: this method needs refactoring. */ int scan_table(); - bool copy_ref_key(); - int copy_ref_key_simple(); /* TIMOUR: this method needs refactoring. */ + bool copy_ref_key(bool skip_constants); bool no_rows() { return empty_result_set; } virtual enum_engine_type engine_type() { return UNIQUESUBQUERY_ENGINE; } }; |