Merge 5.3 with 5.3-mwl89.
This commit is contained in:
unknown 2011-03-30 10:10:59 +03:00
commit 952556b345
72 changed files with 8719 additions and 1594 deletions

View file

@ -307,6 +307,10 @@ int mysql_update(THD *thd,
DBUG_RETURN(1); /* purecov: inspected */
}
/* Apply the IN=>EXISTS transformation to all subqueries and optimize them. */
if (select_lex->optimize_unflattened_subqueries())
DBUG_RETURN(TRUE);
if (select_lex->inner_refs_list.elements &&
fix_inner_refs(thd, all_fields, select_lex, select_lex->ref_pointer_array))
DBUG_RETURN(1);