diff options
author | Sergey Petrunia <psergey@askmonty.org> | 2009-06-25 14:05:53 +0400 |
---|---|---|
committer | Sergey Petrunia <psergey@askmonty.org> | 2009-06-25 14:05:53 +0400 |
commit | 4102605fba3edab2935b7b1d46b7c7569bd889e7 (patch) | |
tree | 045921bc2673d3dff38340a417242024dc08e936 /sql/item_sum.h | |
parent | defbdce7e8c69df85cdd8c630643ef1152330660 (diff) | |
download | mariadb-git-4102605fba3edab2935b7b1d46b7c7569bd889e7.tar.gz |
MWL#17: Table elimination
- Moved table elimination code to sql/opt_table_elimination.cc
- Added comments
.bzrignore:
MWL#17: Table elimination
- Moved table elimination code to sql/opt_table_elimination.cc
libmysqld/Makefile.am:
MWL#17: Table elimination
- Moved table elimination code to sql/opt_table_elimination.cc
sql/CMakeLists.txt:
MWL#17: Table elimination
- Moved table elimination code to sql/opt_table_elimination.cc
sql/Makefile.am:
MWL#17: Table elimination
- Moved table elimination code to sql/opt_table_elimination.cc
Diffstat (limited to 'sql/item_sum.h')
-rw-r--r-- | sql/item_sum.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sql/item_sum.h b/sql/item_sum.h index aec5830f381..e884452d6e6 100644 --- a/sql/item_sum.h +++ b/sql/item_sum.h @@ -351,9 +351,10 @@ public: Return bitmap of tables that are needed to evaluate the item. The implementation takes into account the used strategy: items resolved - at optimization phase report 0. - Items that depend on the number of rows only, e.g. COUNT(*) will report - zero, but will still false from const_item(). + at optimization phase will report 0. + Items that depend on the number of join output records, but not columns + of any particular table (like COUNT(*)) will report 0 from used_tables(), + but will still return false from const_item(). */ table_map used_tables() const { return used_tables_cache; } void update_used_tables (); |