diff options
author | Igor Babaev <igor@askmonty.org> | 2012-01-04 17:51:53 -0800 |
---|---|---|
committer | Igor Babaev <igor@askmonty.org> | 2012-01-04 17:51:53 -0800 |
commit | e8497370b9557e77c0a791f89712a6ae8505f925 (patch) | |
tree | e67d66f7fe58cd216be1c18b8a99f39160909026 /sql/item_sum.cc | |
parent | cd55894a52b5b2bf4a740eb0f39d91d7a82f673c (diff) | |
download | mariadb-git-e8497370b9557e77c0a791f89712a6ae8505f925.tar.gz |
The main patch for the MWL#248 back-ported from
lp:~igorb-seattle/mysql-server/mysql-azalea-wl4777.
Diffstat (limited to 'sql/item_sum.cc')
-rw-r--r-- | sql/item_sum.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sql/item_sum.cc b/sql/item_sum.cc index 183f8ccff10..67837bdfde8 100644 --- a/sql/item_sum.cc +++ b/sql/item_sum.cc @@ -887,14 +887,14 @@ C_MODE_START /* Declarations for auxilary C-callbacks */ -static int simple_raw_key_cmp(void* arg, const void* key1, const void* key2) +int simple_raw_key_cmp(void* arg, const void* key1, const void* key2) { return memcmp(key1, key2, *(uint *) arg); } -static int item_sum_distinct_walk(void *element, element_count num_of_dups, - void *item) +int item_sum_distinct_walk(void *element, element_count num_of_dups, + void *item) { return ((Item_sum_distinct*) (item))->unique_walk_function(element); } @@ -2362,7 +2362,7 @@ int composite_key_cmp(void* arg, uchar* key1, uchar* key2) C_MODE_START -static int count_distinct_walk(void *elem, element_count count, void *arg) +int count_distinct_walk(void *elem, element_count count, void *arg) { (*((ulonglong*)arg))++; return 0; |