Commit 3c0e9d31 authored by Sergei Petrunia's avatar Sergei Petrunia

Fix a typo (this is not a user-visible bug as currently there are

no engines that don't support HA_READ_PREV)
parent 310c718c
......@@ -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
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment