diff options
author | unknown <mhansson/martin@linux-st28.site> | 2007-12-14 13:35:52 +0100 |
---|---|---|
committer | unknown <mhansson/martin@linux-st28.site> | 2007-12-14 13:35:52 +0100 |
commit | 146b317df9ea99febc786a14cbdd53ab0dc44ef1 (patch) | |
tree | 6bf264051de6f1551593b35c26d05a6536ecbd80 /sql/item_sum.cc | |
parent | a9e05bf7586b3ab83d93a54e793dacbd8dec5846 (diff) | |
download | mariadb-git-146b317df9ea99febc786a14cbdd53ab0dc44ef1.tar.gz |
Bug#32798: DISTINCT in GROUP_CONCAT clause fails when ordering by
a column with null values
Post-merge fix
sql/item_sum.cc:
Bug#32798:Post-merge fix
Diffstat (limited to 'sql/item_sum.cc')
-rw-r--r-- | sql/item_sum.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/item_sum.cc b/sql/item_sum.cc index cbd86a760be..6da51cedb8b 100644 --- a/sql/item_sum.cc +++ b/sql/item_sum.cc @@ -2931,7 +2931,7 @@ int group_concat_key_cmp_with_order(void* arg, const void* key1, int res; uint offset= (field->offset(field->table->record[0]) - table->s->null_bytes); - if ((res= field->cmp(key1 + offset, key2 + offset))) + if ((res= field->cmp((uchar*)key1 + offset, (uchar*)key2 + offset))) return (*order_item)->asc ? res : -res; } } |