[Commits] 3c0e9d3: Fix a typo (this is not a user-visible bug as currently there are

Sergei Petrunia psergey at askmonty.org
Wed Nov 25 14:50:19 EET 2015


revision-id: 3c0e9d31b3e6494931deb09f5c93b05a96df8471
parent(s): 310c718cff0fbc5182eab7e77ed26fe567166fca
committer: Sergei Petrunia
branch nick: 10.1-dbg3
timestamp: 2015-11-25 15:50:19 +0300
message:

Fix a typo (this is not a user-visible bug as currently there are
no engines that don't support HA_READ_PREV)

---
 sql/sql_select.cc |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sql/sql_select.cc b/sql/sql_select.cc
index d85d79e..f086a18 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
   }
 


More information about the commits mailing list