Merge 5.3-mwl89 into 5.3.

This commit is contained in:
unknown 2010-12-03 15:37:54 +02:00
commit be95cde859
31 changed files with 6421 additions and 848 deletions

View file

@ -290,6 +290,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);