summaryrefslogtreecommitdiff
path: root/storage/spider/spd_group_by_handler.cc
diff options
context:
space:
mode:
Diffstat (limited to 'storage/spider/spd_group_by_handler.cc')
-rw-r--r--storage/spider/spd_group_by_handler.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/storage/spider/spd_group_by_handler.cc b/storage/spider/spd_group_by_handler.cc
index 30d81b5a4ae..c7019eec360 100644
--- a/storage/spider/spd_group_by_handler.cc
+++ b/storage/spider/spd_group_by_handler.cc
@@ -1858,6 +1858,8 @@ group_by_handler *spider_create_group_by_handler(
{
for (order = query->order_by; order; order = order->next)
{
+ if ((*order->item)->type() == Item::SUM_FUNC_ITEM)
+ continue;
if (spider_db_print_item_type((*order->item), NULL, spider, NULL, NULL, 0,
roop_count, TRUE, fields_arg))
{