diff options
author | holyfoot/hf@deer.(none) <> | 2006-12-06 12:56:11 +0400 |
---|---|---|
committer | holyfoot/hf@deer.(none) <> | 2006-12-06 12:56:11 +0400 |
commit | 4e3530626fba3d815c712ea1a044c62690f3c6dc (patch) | |
tree | 32775062d5999b7debde14c258b8bb289eb0108e /sql/item_cmpfunc.cc | |
parent | ddf219d21ac5d60807503652323828ceb8ca09fe (diff) | |
parent | 75b14779e983e6ea45612aa4615a6a322af1fcde (diff) | |
download | mariadb-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.cc | 3 |
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; } |