~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/item_subselect.cc

  • Committer: Brian Aker
  • Date: 2008-08-18 22:20:43 UTC
  • mto: This revision was merged to the branch mainline in revision 352.
  • Revision ID: brian@tangent.org-20080818222043-et6zf93ogrgx1cz9
Refactoring table.h

Show diffs side-by-side

added added

removed removed

Lines of Context:
2005
2005
  SELECT_LEX *save_select= thd->lex->current_select;
2006
2006
  thd->lex->current_select= select_lex;
2007
2007
  if (join->prepare(&select_lex->ref_pointer_array,
2008
 
                    (TABLE_LIST*) select_lex->table_list.first,
 
2008
                    (TableList*) select_lex->table_list.first,
2009
2009
                    select_lex->with_wild,
2010
2010
                    select_lex->where,
2011
2011
                    select_lex->order_list.elements +
2648
2648
}
2649
2649
 
2650
2650
 
2651
 
table_map subselect_engine::calc_const_tables(TABLE_LIST *table)
 
2651
table_map subselect_engine::calc_const_tables(TableList *table)
2652
2652
{
2653
2653
  table_map map= 0;
2654
2654
  for (; table; table= table->next_leaf)
2663
2663
 
2664
2664
table_map subselect_single_select_engine::upper_select_const_tables()
2665
2665
{
2666
 
  return calc_const_tables((TABLE_LIST *) select_lex->outer_select()->
 
2666
  return calc_const_tables((TableList *) select_lex->outer_select()->
2667
2667
                           leaf_tables);
2668
2668
}
2669
2669
 
2670
2670
 
2671
2671
table_map subselect_union_engine::upper_select_const_tables()
2672
2672
{
2673
 
  return calc_const_tables((TABLE_LIST *) unit->outer_select()->leaf_tables);
 
2673
  return calc_const_tables((TableList *) unit->outer_select()->leaf_tables);
2674
2674
}
2675
2675
 
2676
2676