diff options
author | Vladislav Vaintroub <wlad@montyprogram.com> | 2011-05-28 19:28:39 +0200 |
---|---|---|
committer | Vladislav Vaintroub <wlad@montyprogram.com> | 2011-05-28 19:28:39 +0200 |
commit | 1e1755be86c4bd178584e99c5d7b831b5154c940 (patch) | |
tree | df36382a66c82797c9765158a0a1e9e66cc97b77 /sql/item_sum.cc | |
parent | b519f2b626ebd1f3243a21dc883cefa6a26460f9 (diff) | |
download | mariadb-git-1e1755be86c4bd178584e99c5d7b831b5154c940.tar.gz |
Fix gcc warning.
Diffstat (limited to 'sql/item_sum.cc')
-rw-r--r-- | sql/item_sum.cc | 3 |
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); } |