diff options
author | Sergey Glukhov <sergey.glukhov@oracle.com> | 2011-08-02 11:54:35 +0400 |
---|---|---|
committer | Sergey Glukhov <sergey.glukhov@oracle.com> | 2011-08-02 11:54:35 +0400 |
commit | 6ac689fb4a2aed43080b94d5c6610b1e63663e03 (patch) | |
tree | 6d923a32bd3804ae141bd4559c52d2b112b9dd34 /sql/sql_lex.h | |
parent | 07b95519dd09a73837192f5b599192270069c9ea (diff) | |
parent | de3693a1cd292af3efd8841414da866ee2c2e1de (diff) | |
download | mariadb-git-6ac689fb4a2aed43080b94d5c6610b1e63663e03.tar.gz |
5.1 -> 5.5 merge
Diffstat (limited to 'sql/sql_lex.h')
-rw-r--r-- | sql/sql_lex.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/sql/sql_lex.h b/sql/sql_lex.h index d3b0f578007..8794006fef7 100644 --- a/sql/sql_lex.h +++ b/sql/sql_lex.h @@ -2396,6 +2396,16 @@ struct LEX: public Query_tables_list bool escape_used; bool is_lex_started; /* If lex_start() did run. For debugging. */ + /* + The set of those tables whose fields are referenced in all subqueries + of the query. + TODO: possibly this it is incorrect to have used tables in LEX because + with subquery, it is not clear what does the field mean. To fix this + we should aggregate used tables information for selected expressions + into the select_lex. + */ + table_map used_tables; + LEX(); virtual ~LEX() |