summaryrefslogtreecommitdiff
path: root/sql/partition_info.cc
diff options
context:
space:
mode:
authorMikael Ronstrom <mikael@mysql.com>2009-10-01 15:09:20 +0200
committerMikael Ronstrom <mikael@mysql.com>2009-10-01 15:09:20 +0200
commitf9b0e5db3fa8d9f041e247119da035ce9fb484b3 (patch)
treede45f3e1b3661f56c3d57dcb3f69d664bf0d5c58 /sql/partition_info.cc
parent1fe164a20e9f8e358f21272f429f5f374f7ec9b2 (diff)
downloadmariadb-git-f9b0e5db3fa8d9f041e247119da035ce9fb484b3.tar.gz
BUG#47752, missed to sort values in list partitioning
Diffstat (limited to 'sql/partition_info.cc')
-rw-r--r--sql/partition_info.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/sql/partition_info.cc b/sql/partition_info.cc
index aaa6d0d3767..0540c094ccc 100644
--- a/sql/partition_info.cc
+++ b/sql/partition_info.cc
@@ -993,15 +993,16 @@ bool partition_info::check_list_constants(THD *thd)
}
} while (++i < num_parts);
}
- if (fixed && num_list_values)
+ DBUG_ASSERT(fixed);
+ if (num_list_values)
{
bool first= TRUE;
/*
list_array and list_col_array are unions, so this works for both
variants of LIST partitioning.
*/
- my_qsort((void*)list_array, num_list_values, sizeof(LIST_PART_ENTRY),
- &list_part_cmp);
+ my_qsort((void*)list_array, num_list_values, size_entries,
+ compare_func);
i= 0;
LINT_INIT(prev_value);