~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_select.h

  • 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:
267
267
    Embedding SJ-nest (may be not the direct parent), or NULL if none.
268
268
    This variable holds the result of table pullout.
269
269
  */
270
 
  TABLE_LIST    *emb_sj_nest;
 
270
  TableList    *emb_sj_nest;
271
271
 
272
272
  /* Variables for semi-join duplicate elimination */
273
273
  SJ_TMP_TABLE  *flush_weedout_table;
483
483
  order_st *order, *group_list, *proc_param; //hold parameters of mysql_select
484
484
  COND *conds;                            // ---"---
485
485
  Item *conds_history;                    // store WHERE for explain
486
 
  TABLE_LIST *tables_list;           ///<hold 'tables' parameter of mysql_select
487
 
  List<TABLE_LIST> *join_list;       ///< list of joined tables in reverse order
 
486
  TableList *tables_list;           ///<hold 'tables' parameter of mysql_select
 
487
  List<TableList> *join_list;       ///< list of joined tables in reverse order
488
488
  COND_EQUAL *cond_equal;
489
489
  SQL_SELECT *select;                ///<created in optimisation phase
490
490
  JOIN_TAB *return_tab;              ///<used only for outer joins
580
580
    no_const_tables= false;
581
581
  }
582
582
 
583
 
  int prepare(Item ***rref_pointer_array, TABLE_LIST *tables, uint wind_num,
 
583
  int prepare(Item ***rref_pointer_array, TableList *tables, uint wind_num,
584
584
              COND *conds, uint og_num, order_st *order, order_st *group,
585
585
              Item *having, order_st *proc_param, SELECT_LEX *select,
586
586
              SELECT_LEX_UNIT *unit);
668
668
                                                                      
669
669
/* functions from opt_sum.cc */
670
670
bool simple_pred(Item_func *func_item, Item **args, bool *inv_order);
671
 
int opt_sum_query(TABLE_LIST *tables, List<Item> &all_fields,COND *conds);
 
671
int opt_sum_query(TableList *tables, List<Item> &all_fields,COND *conds);
672
672
 
673
673
/* from sql_delete.cc, used by opt_range.cc */
674
674
extern "C" int refpos_order_cmp(void* arg, const void *a,const void *b);