Skip to content

Commit

Permalink
Remove out-of date code
Browse files Browse the repository at this point in the history
gbh != NULL is handled in a separate branch above,
we don't get into this part of code when gbh!=NULL
  • Loading branch information
spetrunia committed Mar 27, 2016
1 parent 0786b0d commit c95e789
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions sql/sql_select.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2278,22 +2278,14 @@ bool JOIN::make_aggr_tables_info()
tmp_table_param.hidden_field_count=
all_fields.elements - fields_list.elements;

if (!gbh)
{
distinct= select_distinct && !group_list;
keep_row_order= false;
}
distinct= select_distinct && !group_list;
keep_row_order= false;
if (create_postjoin_aggr_table(curr_tab,
&all_fields, tmp_group,
group_list && simple_group,
distinct, keep_row_order))
DBUG_RETURN(true);
exec_tmp_table= curr_tab->table;
if (gbh)
{
/* Give storage engine access to temporary table */
gbh->table= exec_tmp_table;
}

if (exec_tmp_table->distinct)
optimize_distinct();
Expand Down

0 comments on commit c95e789

Please sign in to comment.