Fix bug: a typo in NibbleIterator::_find_best_index().

This commit is contained in:
Daniel Nichter
2013-07-10 10:23:28 -07:00
parent 89524dbefa
commit 51e476c6a2
2 changed files with 2 additions and 5 deletions

View File

@@ -554,7 +554,7 @@ sub _find_best_index {
@possible_indexes = sort {
# Prefer the index with the highest cardinality.
my $cmp
= $indexes->{$b}->{cardinality} <=> $indexes->{$b}->{cardinality};
= $indexes->{$b}->{cardinality} <=> $indexes->{$a}->{cardinality};
if ( $cmp == 0 ) {
# Indexes have the same cardinality; prefer the one with
# more columns.