~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_select.cc

  • Committer: Monty Taylor
  • Date: 2010-12-24 07:15:43 UTC
  • mto: This revision was merged to the branch mainline in revision 2029.
  • Revision ID: mordred@inaugust.com-20101224071543-ab082y5circku6v5
Renamed things prefixed mysql_ or mysqld_

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
  @file
18
18
 
19
19
  @brief
20
 
  mysql_select and join optimization
 
20
  select_query and join optimization
21
21
 
22
22
  @defgroup Query_Optimizer  Query Optimizer
23
23
  @{
131
131
    unit->set_limit(unit->global_parameters);
132
132
    session->session_marker= 0;
133
133
    /*
134
 
      'options' of mysql_select will be set in JOIN, as far as JOIN for
 
134
      'options' of select_query will be set in JOIN, as far as JOIN for
135
135
      every PS/SP execution new, we will not need reset this flag if
136
136
      setup_tables_done_option changed for next rexecution
137
137
    */
138
 
    res= mysql_select(session,
 
138
    res= select_query(session,
139
139
                      &select_lex->ref_pointer_array,
140
140
                      (TableList*) select_lex->table_list.first,
141
141
                      select_lex->with_wild,
270
270
 
271
271
/*****************************************************************************
272
272
  Check fields, find best join, do the select and output fields.
273
 
  mysql_select assumes that all tables are already opened
 
273
  select_query assumes that all tables are already opened
274
274
*****************************************************************************/
275
275
 
276
276
/*
350
350
  @retval
351
351
    true   an error
352
352
*/
353
 
bool mysql_select(Session *session,
 
353
bool select_query(Session *session,
354
354
                  Item ***rref_pointer_array,
355
355
                  TableList *tables, 
356
356
                  uint32_t wild_num, 
931
931
 
932
932
  /*
933
933
    we should restore old value of count_cuted_fields because
934
 
    store_val_in_field can be called from mysql_insert
 
934
    store_val_in_field can be called from insert_query
935
935
    with select_insert, which make count_cuted_fields= 1
936
936
   */
937
937
  enum_check_fields old_count_cuted_fields= session->count_cuted_fields;