mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
Merge with 5.2
This commit is contained in:
@ -1742,14 +1742,8 @@ typedef struct st_lex : public Query_tables_list
|
||||
bool verbose, no_write_to_binlog;
|
||||
|
||||
bool 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;
|
||||
|
||||
uint8 context_analysis_only;
|
||||
bool safe_to_cache_query;
|
||||
bool subqueries, ignore;
|
||||
st_parsing_options parsing_options;
|
||||
@ -1875,6 +1869,13 @@ typedef struct st_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;
|
||||
|
Reference in New Issue
Block a user