@@ -627,8 +627,7 @@ bool Item_subselect::exec()
627627*/
628628
629629void Item_subselect::fix_after_pullout (st_select_lex *parent_select,
630- st_select_lex *removed_select,
631- Item **ref)
630+ st_select_lex *removed_select)
632631
633632{
634633 /* Clear usage information for this subquery predicate object */
@@ -641,17 +640,15 @@ void Item_subselect::fix_after_pullout(st_select_lex *parent_select,
641640 for (SELECT_LEX *sel= unit->first_select (); sel; sel= sel->next_select ())
642641 {
643642 if (sel->where )
644- sel->where ->fix_after_pullout (parent_select, removed_select,
645- &sel->where );
643+ sel->where ->fix_after_pullout (parent_select, removed_select);
646644
647645 if (sel->having )
648- sel->having ->fix_after_pullout (parent_select, removed_select,
649- &sel->having );
646+ sel->having ->fix_after_pullout (parent_select, removed_select);
650647
651648 List_iterator<Item> li (sel->item_list );
652649 Item *item;
653650 while ((item=li++))
654- item->fix_after_pullout (parent_select, removed_select, li. ref () );
651+ item->fix_after_pullout (parent_select, removed_select);
655652
656653 /*
657654 No need to call fix_after_pullout() for outer-join conditions, as these
@@ -663,14 +660,12 @@ void Item_subselect::fix_after_pullout(st_select_lex *parent_select,
663660 for (ORDER *order= (ORDER*) sel->order_list .first ;
664661 order;
665662 order= order->next )
666- (*order->item )->fix_after_pullout (parent_select, removed_select,
667- order->item );
663+ (*order->item )->fix_after_pullout (parent_select, removed_select);
668664
669665 for (ORDER *group= (ORDER*) sel->group_list .first ;
670666 group;
671667 group= group->next )
672- (*group->item )->fix_after_pullout (parent_select, removed_select,
673- group->item );
668+ (*group->item )->fix_after_pullout (parent_select, removed_select);
674669 }
675670}
676671
@@ -2327,12 +2322,11 @@ bool Item_in_subselect::fix_fields(THD *thd_arg, Item **ref)
23272322
23282323
23292324void Item_in_subselect::fix_after_pullout (st_select_lex *parent_select,
2330- st_select_lex *removed_select,
2331- Item **ref)
2325+ st_select_lex *removed_select)
23322326{
2333- Item_subselect::fix_after_pullout (parent_select, removed_select, ref );
2327+ Item_subselect::fix_after_pullout (parent_select, removed_select);
23342328
2335- left_expr->fix_after_pullout (parent_select, removed_select, &left_expr );
2329+ left_expr->fix_after_pullout (parent_select, removed_select);
23362330
23372331 used_tables_cache|= left_expr->used_tables ();
23382332}
0 commit comments