summaryrefslogtreecommitdiff
path: root/sql/sql_lex.cc
diff options
context:
space:
mode:
Diffstat (limited to 'sql/sql_lex.cc')
-rw-r--r--sql/sql_lex.cc13
1 files changed, 7 insertions, 6 deletions
diff --git a/sql/sql_lex.cc b/sql/sql_lex.cc
index c347dd06420..2b013b8b88b 100644
--- a/sql/sql_lex.cc
+++ b/sql/sql_lex.cc
@@ -1283,6 +1283,7 @@ void LEX::start(THD *thd_arg)
use_only_table_context= 0;
escape_used= 0;
default_used= 0;
+ with_rownum= FALSE;
is_lex_started= 1;
create_info.lex_start();
@@ -2936,6 +2937,7 @@ void st_select_lex::init_query()
leaf_tables_prep.empty();
leaf_tables.empty();
item_list.empty();
+ fix_after_optimize.empty();
min_max_opt_list.empty();
limit_params.clear();
join= 0;
@@ -2948,7 +2950,7 @@ void st_select_lex::init_query()
is_item_list_lookup= 0;
have_merged_subqueries= 0;
is_set_query_expr_tail= 0;
- with_sum_func= 0;
+ with_sum_func= with_rownum= 0;
braces= 0;
automatic_brackets= 0;
having_fix_field= 0;
@@ -3960,10 +3962,10 @@ void Query_tables_list::destroy_query_tables_list()
*/
LEX::LEX()
- : explain(NULL), result(0), part_info(NULL), arena_for_set_stmt(0), mem_root_for_set_stmt(0),
- json_table(NULL), default_used(0), is_lex_started(0),
- option_type(OPT_DEFAULT), context_analysis_only(0), sphead(0),
- limit_rows_examined_cnt(ULONGLONG_MAX)
+ : explain(NULL), result(0), part_info(NULL), arena_for_set_stmt(0),
+ mem_root_for_set_stmt(0), json_table(NULL), default_used(0),
+ with_rownum(0), is_lex_started(0), option_type(OPT_DEFAULT),
+ context_analysis_only(0), sphead(0), limit_rows_examined_cnt(ULONGLONG_MAX)
{
init_dynamic_array2(PSI_INSTRUMENT_ME, &plugins, sizeof(plugin_ref),
@@ -4241,7 +4243,6 @@ void st_select_lex_unit::set_limit(st_select_lex *sl)
lim.set_limit(sl->get_limit(), sl->get_offset(), sl->limit_params.with_ties);
}
-
/**
Decide if a temporary table is needed for the UNION.