summaryrefslogtreecommitdiff
path: root/sql
diff options
context:
space:
mode:
authorSergei Petrunia <psergey@askmonty.org>2015-11-25 15:50:19 +0300
committerSergei Petrunia <psergey@askmonty.org>2015-11-25 15:50:19 +0300
commit3c0e9d31b3e6494931deb09f5c93b05a96df8471 (patch)
tree8b3fea467369d68ccef88f9d860e754c027bd919 /sql
parent310c718cff0fbc5182eab7e77ed26fe567166fca (diff)
downloadmariadb-git-3c0e9d31b3e6494931deb09f5c93b05a96df8471.tar.gz
Fix a typo (this is not a user-visible bug as currently there are
no engines that don't support HA_READ_PREV)
Diffstat (limited to 'sql')
-rw-r--r--sql/sql_select.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sql_select.cc b/sql/sql_select.cc
index d85d79e78d2..f086a184b96 100644
--- a/sql/sql_select.cc
+++ b/sql/sql_select.cc
@@ -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
}