Skip to content

Commit

Permalink
Fix a -Wimplicit-fallthrough warning
Browse files Browse the repository at this point in the history
  • Loading branch information
dr-m committed Jan 5, 2018
1 parent f77fe24 commit 6d49ef4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions sql/sql_union.cc
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,14 @@ void select_unit::change_select()
curr_sel= current_select_number;
/* New SELECT processing starts */
DBUG_ASSERT(table->file->inited == 0);
switch (thd->lex->current_select->linkage)
step= thd->lex->current_select->linkage;
switch (step)
{
case INTERSECT_TYPE:
intersect_mark->value= prev_step= curr_step;
curr_step= current_select_number;
break;
case EXCEPT_TYPE:
step= thd->lex->current_select->linkage;
break;
default:
step= UNION_TYPE;
Expand Down

0 comments on commit 6d49ef4

Please sign in to comment.