diff options
author | Sergey Glukhov <sergey.glukhov@oracle.com> | 2010-12-14 13:46:00 +0300 |
---|---|---|
committer | Sergey Glukhov <sergey.glukhov@oracle.com> | 2010-12-14 13:46:00 +0300 |
commit | e6bf102466847e992c8cec894b7ef6bb7a971c8b (patch) | |
tree | fefb04085998222a7c9fcd629b204667e76e3a20 /sql/sql_lex.h | |
parent | 8d311a855164416744c35742a3e1368c49ca6c1a (diff) | |
parent | fcb83cbf15653bbed15936d8eafb4fc7de3e743b (diff) | |
download | mariadb-git-e6bf102466847e992c8cec894b7ef6bb7a971c8b.tar.gz |
5.1-bugteam->5.5-bugteam merge
Diffstat (limited to 'sql/sql_lex.h')
-rw-r--r-- | sql/sql_lex.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/sql/sql_lex.h b/sql/sql_lex.h index 191562bd3e8..2d11bc7aad7 100644 --- a/sql/sql_lex.h +++ b/sql/sql_lex.h @@ -2286,19 +2286,12 @@ struct LEX: public Query_tables_list uint8 derived_tables; uint8 create_view_algorithm; uint8 create_view_check; + uint8 context_analysis_only; bool drop_if_exists, drop_temporary, local_file, one_shot_set; bool autocommit; bool verbose, no_write_to_binlog; enum enum_yes_no_unknown tx_chain, tx_release; - /* - Special JOIN::prepare mode: changing of query is prohibited. - When creating a view, we need to just check its syntax omitting - any optimizations: afterwards definition of the view will be - reconstructed by means of ::print() methods and written to - to an .frm file. We need this definition to stay untouched. - */ - bool view_prepare_mode; bool safe_to_cache_query; bool subqueries, ignore; st_parsing_options parsing_options; @@ -2403,6 +2396,13 @@ struct LEX: public Query_tables_list delete_dynamic(&plugins); } + inline bool is_ps_or_view_context_analysis() + { + return (context_analysis_only & + (CONTEXT_ANALYSIS_ONLY_PREPARE | + CONTEXT_ANALYSIS_ONLY_VIEW)); + } + inline void uncacheable(uint8 cause) { safe_to_cache_query= 0; |