1
0
mirror of https://github.com/MariaDB/server.git synced 2026-10-23 18:49:29 +03:00

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

no engines that don't support HA_READ_PREV)
This commit is contained in:
Sergei Petrunia
2015-11-25 15:50:19 +03:00
parent 310c718cff
commit 3c0e9d31b3

View File

@@ -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
}