Commit 1e1755be authored by Vladislav Vaintroub's avatar Vladislav Vaintroub

Fix gcc warning.

parent b519f2b6
...@@ -674,7 +674,8 @@ void Item_sum_hybrid::setup_hybrid(Item *item, Item *value_arg) ...@@ -674,7 +674,8 @@ void Item_sum_hybrid::setup_hybrid(Item *item, Item *value_arg)
/* Don't cache value, as it will change */ /* Don't cache value, as it will change */
if (!item->const_item()) if (!item->const_item())
arg_cache->set_used_tables(RAND_TABLE_BIT); 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); cmp->set_cmp_func(this, (Item**)&arg_cache, (Item**)&value, FALSE);
collation.set(item->collation); collation.set(item->collation);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment