Skip to content

Commit

Permalink
cleanup: remove table_options and corresponding accessor function
Browse files Browse the repository at this point in the history
The variable is never used and only takes up SELECT_LEX space.
  • Loading branch information
cvicentiu committed Apr 21, 2021
1 parent 5e72099 commit d624464
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 14 deletions.
7 changes: 0 additions & 7 deletions sql/sql_lex.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3000,7 +3000,6 @@ void st_select_lex::init_select()
type= 0;
db= null_clex_str;
having= 0;
table_join_options= 0;
in_sum_expr= with_wild= 0;
options= 0;
ftfunc_list_alloc.empty();
Expand Down Expand Up @@ -3532,12 +3531,6 @@ List<Item>* st_select_lex::get_item_list()
return &item_list;
}

ulong st_select_lex::get_table_join_options()
{
return table_join_options;
}


bool st_select_lex::setup_ref_array(THD *thd, uint order_group_num)
{

Expand Down
1 change: 0 additions & 1 deletion sql/sql_lex.h
Original file line number Diff line number Diff line change
Expand Up @@ -1232,7 +1232,6 @@ class st_select_lex: public st_select_lex_node
enum_parsing_place context_analysis_place; /* where we are in prepare */
bool with_sum_func; /* sum function indicator */

ulong table_join_options;
uint in_sum_expr;
uint select_number; /* number of select (used for EXPLAIN) */

Expand Down
8 changes: 2 additions & 6 deletions sql/sql_yacc.yy
Original file line number Diff line number Diff line change
Expand Up @@ -11969,10 +11969,8 @@ table_primary_ident:
table_ident opt_use_partition opt_for_system_time_clause
opt_table_alias_clause opt_key_definition
{
SELECT_LEX *sel= Select;
sel->table_join_options= 0;
if (!($$= Select->add_table_to_list(thd, $1, $4,
Select->get_table_join_options(),
0,
YYPS->m_lock_type,
YYPS->m_mdl_type,
Select->pop_index_hints(),
Expand Down Expand Up @@ -13349,10 +13347,8 @@ update_table_list:
table_ident opt_use_partition for_portion_of_time_clause
opt_table_alias_clause opt_key_definition
{
SELECT_LEX *sel= Select;
sel->table_join_options= 0;
if (!($$= Select->add_table_to_list(thd, $1, $4,
Select->get_table_join_options(),
0,
YYPS->m_lock_type,
YYPS->m_mdl_type,
Select->pop_index_hints(),
Expand Down

0 comments on commit d624464

Please sign in to comment.