summaryrefslogtreecommitdiff
path: root/sql/item_cmpfunc.cc
diff options
context:
space:
mode:
authorholyfoot/hf@deer.(none) <>2006-12-06 12:56:11 +0400
committerholyfoot/hf@deer.(none) <>2006-12-06 12:56:11 +0400
commit4e3530626fba3d815c712ea1a044c62690f3c6dc (patch)
tree32775062d5999b7debde14c258b8bb289eb0108e /sql/item_cmpfunc.cc
parentddf219d21ac5d60807503652323828ceb8ca09fe (diff)
parent75b14779e983e6ea45612aa4615a6a322af1fcde (diff)
downloadmariadb-git-4e3530626fba3d815c712ea1a044c62690f3c6dc.tar.gz
Merge bk@192.168.21.1:mysql-5.1-opt
into mysql.com:/home/hf/work/mysql-5.1.20835
Diffstat (limited to 'sql/item_cmpfunc.cc')
-rw-r--r--sql/item_cmpfunc.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/sql/item_cmpfunc.cc b/sql/item_cmpfunc.cc
index b1b73a523be..639017872a0 100644
--- a/sql/item_cmpfunc.cc
+++ b/sql/item_cmpfunc.cc
@@ -797,7 +797,8 @@ bool Item_in_optimizer::fix_left(THD *thd, Item **ref)
}
not_null_tables_cache= args[0]->not_null_tables();
with_sum_func= args[0]->with_sum_func;
- const_item_cache= args[0]->const_item();
+ if ((const_item_cache= args[0]->const_item()))
+ cache->store(args[0]);
return 0;
}