Commit a523444e authored by Eugene Kosov's avatar Eugene Kosov Committed by Sergey Vojtovich

remove dead code

parent 1c60f408
...@@ -698,7 +698,6 @@ void LEX::start(THD *thd_arg) ...@@ -698,7 +698,6 @@ void LEX::start(THD *thd_arg)
describe= 0; describe= 0;
analyze_stmt= 0; analyze_stmt= 0;
explain_json= false; explain_json= false;
subqueries= FALSE;
context_analysis_only= 0; context_analysis_only= 0;
derived_tables= 0; derived_tables= 0;
safe_to_cache_query= 1; safe_to_cache_query= 1;
......
...@@ -3034,7 +3034,7 @@ struct LEX: public Query_tables_list ...@@ -3034,7 +3034,7 @@ struct LEX: public Query_tables_list
enum enum_yes_no_unknown tx_chain, tx_release; enum enum_yes_no_unknown tx_chain, tx_release;
bool safe_to_cache_query; bool safe_to_cache_query;
bool subqueries, ignore; bool ignore;
st_parsing_options parsing_options; st_parsing_options parsing_options;
Alter_info alter_info; Alter_info alter_info;
/* /*
...@@ -3053,7 +3053,6 @@ struct LEX: public Query_tables_list ...@@ -3053,7 +3053,6 @@ struct LEX: public Query_tables_list
sp_name *spname; sp_name *spname;
bool sp_lex_in_use; // Keep track on lex usage in SPs for error handling bool sp_lex_in_use; // Keep track on lex usage in SPs for error handling
bool all_privileges; bool all_privileges;
bool proxy_priv;
sp_pcontext *spcont; sp_pcontext *spcont;
...@@ -4140,18 +4139,6 @@ class Yacc_state ...@@ -4140,18 +4139,6 @@ class Yacc_state
*/ */
}; };
/**
Input parameters to the parser.
*/
struct Parser_input
{
bool m_compute_digest;
Parser_input()
: m_compute_digest(false)
{}
};
/** /**
Internal state of the parser. Internal state of the parser.
The complete state consist of: The complete state consist of:
...@@ -4179,7 +4166,6 @@ class Parser_state ...@@ -4179,7 +4166,6 @@ class Parser_state
~Parser_state() ~Parser_state()
{} {}
Parser_input m_input;
Lex_input_stream m_lip; Lex_input_stream m_lip;
Yacc_state m_yacc; Yacc_state m_yacc;
......
...@@ -7733,7 +7733,6 @@ mysql_new_select(LEX *lex, bool move_down, SELECT_LEX *select_lex) ...@@ -7733,7 +7733,6 @@ mysql_new_select(LEX *lex, bool move_down, SELECT_LEX *select_lex)
if (move_down) if (move_down)
{ {
SELECT_LEX_UNIT *unit; SELECT_LEX_UNIT *unit;
lex->subqueries= TRUE;
/* first select_lex of subselect or derived table */ /* first select_lex of subselect or derived table */
if (!(unit= new (thd->mem_root) SELECT_LEX_UNIT())) if (!(unit= new (thd->mem_root) SELECT_LEX_UNIT()))
DBUG_RETURN(1); DBUG_RETURN(1);
...@@ -10079,8 +10078,7 @@ bool parse_sql(THD *thd, Parser_state *parser_state, ...@@ -10079,8 +10078,7 @@ bool parse_sql(THD *thd, Parser_state *parser_state,
/* Start Digest */ /* Start Digest */
parser_state->m_digest_psi= MYSQL_DIGEST_START(thd->m_statement_psi); parser_state->m_digest_psi= MYSQL_DIGEST_START(thd->m_statement_psi);
if (parser_state->m_input.m_compute_digest || if (parser_state->m_digest_psi != NULL)
(parser_state->m_digest_psi != NULL))
{ {
/* /*
If either: If either:
......
...@@ -1712,7 +1712,6 @@ bool mysql_make_view(THD *thd, TABLE_SHARE *share, TABLE_LIST *table, ...@@ -1712,7 +1712,6 @@ bool mysql_make_view(THD *thd, TABLE_SHARE *share, TABLE_LIST *table,
view_select->linkage= DERIVED_TABLE_TYPE; view_select->linkage= DERIVED_TABLE_TYPE;
table->updatable= 0; table->updatable= 0;
table->effective_with_check= VIEW_CHECK_NONE; table->effective_with_check= VIEW_CHECK_NONE;
old_lex->subqueries= TRUE;
table->derived= &lex->unit; table->derived= &lex->unit;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment