summaryrefslogtreecommitdiff
path: root/sql/opt_range_mrr.cc
diff options
context:
space:
mode:
authorMichael Widenius <monty@askmonty.org>2013-05-21 22:00:08 +0300
committerMichael Widenius <monty@askmonty.org>2013-05-21 22:00:08 +0300
commit3143ad589a24ac7581e2195ba0dc13576cb3c9da (patch)
tree9c02baa18cdca6f60d80e2f7ee7f3f792c293ab9 /sql/opt_range_mrr.cc
parent068c61978e3a81836d52b8caf11e044290159ad1 (diff)
downloadmariadb-git-3143ad589a24ac7581e2195ba0dc13576cb3c9da.tar.gz
Push a lot of small fixes to get larger parts to compile
Diffstat (limited to 'sql/opt_range_mrr.cc')
-rw-r--r--sql/opt_range_mrr.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/opt_range_mrr.cc b/sql/opt_range_mrr.cc
index e03a1e2e644..72c1fa0a8c9 100644
--- a/sql/opt_range_mrr.cc
+++ b/sql/opt_range_mrr.cc
@@ -268,7 +268,7 @@ walk_up_n_right:
range->end_key.keypart_map= make_prev_keypart_map(cur->max_key_parts);
if (!(cur->min_key_flag & ~NULL_RANGE) && !cur->max_key_flag &&
- (uint)key_tree->part+1 == seq->param->table->key_info[seq->real_keyno].key_parts &&
+ (uint)key_tree->part+1 == seq->param->table->key_info[seq->real_keyno].user_defined_key_parts &&
(seq->param->table->key_info[seq->real_keyno].flags & HA_NOSAME) &&
range->start_key.length == range->end_key.length &&
!memcmp(seq->param->min_key,seq->param->max_key,range->start_key.length))