diff options
author | Sergey Petrunya <psergey@askmonty.org> | 2011-03-27 03:45:16 +0400 |
---|---|---|
committer | Sergey Petrunya <psergey@askmonty.org> | 2011-03-27 03:45:16 +0400 |
commit | 5de770f31736e1ed7088b6d609a4237083d4fe47 (patch) | |
tree | 7a806cb868f740609a99d3dcdd352f68d8dcb188 /sql/sql_select.h | |
parent | 290a72d50b65975e0bdd5caffa74d04acee906a5 (diff) | |
download | mariadb-git-5de770f31736e1ed7088b6d609a4237083d4fe47.tar.gz |
MWL#90: Address review feedback part #14
Diffstat (limited to 'sql/sql_select.h')
-rw-r--r-- | sql/sql_select.h | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/sql/sql_select.h b/sql/sql_select.h index 8453037b878..6cd2828c0db 100644 --- a/sql/sql_select.h +++ b/sql/sql_select.h @@ -647,7 +647,13 @@ public: passing 1st non-const table to filesort(). NULL means no such table exists. */ TABLE *sort_by_table; - uint tables; /**< Number of tables in the join */ + /* + Number of tables in the join. + (In MySQL, it is named 'tables' and is also the number of elements in + join->join_tab array. In MariaDB, the latter is not true, so we've renamed + the variable) + */ + uint table_count; uint outer_tables; /**< Number of tables that are not inside semijoin */ uint const_tables; /* @@ -899,7 +905,7 @@ public: { join_tab= join_tab_save= 0; table= 0; - tables= 0; + table_count= 0; top_jtrange_tables= 0; const_tables= 0; eliminated_tables= 0; @@ -1015,7 +1021,7 @@ public: } inline table_map all_tables_map() { - return (table_map(1) << tables) - 1; + return (table_map(1) << table_count) - 1; } /* Return the table for which an index scan can be used to satisfy |