Browse Source

MWL#89

Added comment.
pull/374/head
unknown 15 years ago
parent
commit
0737fb479f
  1. 4
      sql/opt_subselect.cc

4
sql/opt_subselect.cc

@ -910,6 +910,10 @@ static bool convert_subq_to_sj(JOIN *parent_join, Item_in_subselect *subq_pred)
{
/* Inject into the WHERE */
parent_join->conds= and_items(parent_join->conds, sj_nest->sj_on_expr);
/*
fix_fields must update the properties (e.g. st_select_lex::cond_count of
the correct select_lex.
*/
save_lex= thd->lex->current_select;
thd->lex->current_select=parent_join->select_lex;
parent_join->conds->fix_fields(parent_join->thd, &parent_join->conds);

Loading…
Cancel
Save