[Commits] Rev 3553: Fix constant reporting. in file:///home/bell/maria/bzr/work-maria-5.3-MDEV-367/

sanja at askmonty.org sanja at askmonty.org
Wed Aug 22 15:00:46 EEST 2012


At file:///home/bell/maria/bzr/work-maria-5.3-MDEV-367/

------------------------------------------------------------
revno: 3553
revision-id: sanja at askmonty.org-20120822120045-qelq01tlonlb0uyq
parent: sanja at askmonty.org-20120822102611-ohs6xnts3cl9e8s5
committer: sanja at askmonty.org
branch nick: work-maria-5.3-MDEV-367
timestamp: Wed 2012-08-22 15:00:45 +0300
message:
  Fix constant reporting.
-------------- next part --------------
=== modified file 'sql/item_subselect.cc'
--- a/sql/item_subselect.cc	2012-08-22 10:26:11 +0000
+++ b/sql/item_subselect.cc	2012-08-22 12:00:45 +0000
@@ -765,7 +765,9 @@ table_map Item_subselect::used_tables()
 
 bool Item_subselect::const_item() const
 {
-  return thd->lex->context_analysis_only ? FALSE : const_item_cache;
+  return (thd->lex->context_analysis_only ?
+          FALSE :
+          forced_const || const_item_cache);
 }
 
 Item *Item_subselect::get_tmp_table_item(THD *thd_arg)



More information about the commits mailing list