Skip to content

Commit

Permalink
Fix a typo (this is not a user-visible bug as currently there are
Browse files Browse the repository at this point in the history
no engines that don't support HA_READ_PREV)
  • Loading branch information
spetrunia committed Nov 25, 2015
1 parent 310c718 commit 3c0e9d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sql/sql_select.cc
Original file line number Diff line number Diff line change
Expand Up @@ -20446,7 +20446,7 @@ static int test_if_order_by_key(ORDER *order, TABLE *table, uint idx,
if (have_pk_suffix && reverse == -1)
{
uint pk_parts= table->key_info[pk].user_defined_key_parts;
if (!table->file->index_flags(pk, pk_parts, 1) & HA_READ_PREV)
if (!(table->file->index_flags(pk, pk_parts, 1) & HA_READ_PREV))
reverse= 0; // Index can't be used
}

Expand Down

0 comments on commit 3c0e9d3

Please sign in to comment.