summaryrefslogtreecommitdiff
path: root/sql/item_cmpfunc.cc
diff options
context:
space:
mode:
authorGeorgi Kodinov <joro@sun.com>2009-12-15 10:54:53 +0200
committerGeorgi Kodinov <joro@sun.com>2009-12-15 10:54:53 +0200
commit7b7a5c6e7abb98e86f579332b35e35f78fd6f440 (patch)
tree674d6739d054be4bbfd2d32d32dea8845f693ffe /sql/item_cmpfunc.cc
parent4b603e488125e0bae275936bb35208bb3ddde90a (diff)
downloadmariadb-git-7b7a5c6e7abb98e86f579332b35e35f78fd6f440.tar.gz
Bug#49489: Uninitialized cache led to a wrong result.
Merge the fix from 5.1-bugteam to 5.1-main
Diffstat (limited to 'sql/item_cmpfunc.cc')
-rw-r--r--sql/item_cmpfunc.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/item_cmpfunc.cc b/sql/item_cmpfunc.cc
index d99748b87a0..419b79377d7 100644
--- a/sql/item_cmpfunc.cc
+++ b/sql/item_cmpfunc.cc
@@ -1031,7 +1031,7 @@ Item** Arg_comparator::cache_converted_constant(THD *thd, Item **value,
(*value)->const_item() && type != (*value)->result_type())
{
Item_cache *cache= Item_cache::get_cache(*value, type);
- cache->store(*value);
+ cache->setup(*value);
*cache_item= cache;
return cache_item;
}