mirror of
https://github.com/MariaDB/server.git
synced 2026-05-15 11:27:39 +02:00
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.
This commit is contained in:
parent
a742d49c90
commit
55597a4869
12 changed files with 277 additions and 52 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue