1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

Subquery optimizations: non-semijoin materialization

- Backport into Maria DB 5.3, part 1
This commit is contained in:
Sergey Petrunya
2010-01-28 16:48:33 +03:00
parent 742afd8eae
commit f47b2d38f6
12 changed files with 1119 additions and 145 deletions

View File

@ -5493,7 +5493,7 @@ static SEL_TREE *get_mm_tree(RANGE_OPT_PARAM *param,COND *cond)
DBUG_RETURN(tree);
}
/* Here when simple cond */
if (cond->const_item())
if (cond->const_item() && !cond->is_expensive())
{
/*
During the cond->val_int() evaluation we can come across a subselect