summaryrefslogtreecommitdiff
path: root/sql
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
commit838adcf2ff68464a7817d9cadf2fc8f6cbe95beb (patch)
tree674d6739d054be4bbfd2d32d32dea8845f693ffe /sql
parent915cc3e9b0eb8691084b5cc6edaecb77c5551c5c (diff)
downloadmariadb-git-838adcf2ff68464a7817d9cadf2fc8f6cbe95beb.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')
-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;
}