summaryrefslogtreecommitdiff
path: root/sql/opt_range.cc
diff options
context:
space:
mode:
authorunknown <sergefp@mysql.com>2005-10-19 12:41:30 +0400
committerunknown <sergefp@mysql.com>2005-10-19 12:41:30 +0400
commitc5f9e201eb92d277fcf98ab13fa2f294078f0612 (patch)
tree78335682bf1cbbc0ed6e5f601e65d8944748366a /sql/opt_range.cc
parent8698ffc9681f1e4efd6deb0e89bb803793cafb04 (diff)
downloadmariadb-git-c5f9e201eb92d277fcf98ab13fa2f294078f0612.tar.gz
Post-merge fixes
Diffstat (limited to 'sql/opt_range.cc')
-rw-r--r--sql/opt_range.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/opt_range.cc b/sql/opt_range.cc
index 7e1821b9953..ff2b14a27ee 100644
--- a/sql/opt_range.cc
+++ b/sql/opt_range.cc
@@ -1401,7 +1401,7 @@ uint get_index_for_order(TABLE *table, ORDER *order, ha_rows limit)
if (!ord->asc)
return MAX_KEY;
- for (idx= 0; idx < table->keys; idx++)
+ for (idx= 0; idx < table->s->keys; idx++)
{
if (!(table->keys_in_use_for_query.is_set(idx)))
continue;