summaryrefslogtreecommitdiff
path: root/sql/item_sum.cc
diff options
context:
space:
mode:
Diffstat (limited to 'sql/item_sum.cc')
-rw-r--r--sql/item_sum.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/sql/item_sum.cc b/sql/item_sum.cc
index 123289f52e7..7ca127b966c 100644
--- a/sql/item_sum.cc
+++ b/sql/item_sum.cc
@@ -674,7 +674,8 @@ void Item_sum_hybrid::setup_hybrid(Item *item, Item *value_arg)
/* Don't cache value, as it will change */
if (!item->const_item())
arg_cache->set_used_tables(RAND_TABLE_BIT);
- if (cmp= new Arg_comparator())
+ cmp= new Arg_comparator();
+ if (cmp)
cmp->set_cmp_func(this, (Item**)&arg_cache, (Item**)&value, FALSE);
collation.set(item->collation);
}