diff options
author | Sergey Petrunya <psergey@askmonty.org> | 2012-07-25 20:41:48 +0400 |
---|---|---|
committer | Sergey Petrunya <psergey@askmonty.org> | 2012-07-25 20:41:48 +0400 |
commit | 55597a48698b267b966873727b079cd3ac0d1c18 (patch) | |
tree | 5869ad91600e4fa8a3ba8ee95edac27d93cc3499 /sql/item_subselect.cc | |
parent | a742d49c902b97ea8a6e20368a16bb47d71b3b57 (diff) | |
download | mariadb-git-55597a48698b267b966873727b079cd3ac0d1c18.tar.gz |
MDEV-410: EXPLAIN shows type=range, while SHOW EXPLAIN and userstat show full table scan is used
- Make Item_subselect::fix_fields() ignore UNCACHEABLE_EXPLAIN flag when deciding whether
the subquery item should be marked as constant.
Diffstat (limited to 'sql/item_subselect.cc')
-rw-r--r-- | sql/item_subselect.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/item_subselect.cc b/sql/item_subselect.cc index 4a8e1393a22..49d232d31be 100644 --- a/sql/item_subselect.cc +++ b/sql/item_subselect.cc @@ -287,7 +287,7 @@ bool Item_subselect::fix_fields(THD *thd_param, Item **ref) else goto end; - if ((uncacheable= engine->uncacheable())) + if ((uncacheable= engine->uncacheable() & ~UNCACHEABLE_EXPLAIN)) { const_item_cache= 0; if (uncacheable & UNCACHEABLE_RAND) |