~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_lex.cc

  • Committer: Lee Bieber
  • Date: 2011-02-21 21:20:44 UTC
  • mfrom: (2187.1.2 build)
  • Revision ID: kalebral@gmail.com-20110221212044-x1j9pmv0230febuz
Merge Brian - getLex() usage and fix for table_name creation during admin commands.
Merge Olaf - Use List::begin() and Use List::iterator instead of List_iterator_fast

Show diffs side-by-side

added added

removed removed

Lines of Context:
223
223
 
224
224
void lex_start(Session *session)
225
225
{
226
 
  LEX *lex= session->lex;
 
226
  LEX *lex= session->getLex();
227
227
 
228
228
  lex->session= lex->unit.session= session;
229
229
 
670
670
  unsigned int length;
671
671
  enum my_lex_states state;
672
672
  Lex_input_stream *lip= session->m_lip;
673
 
  LEX *lex= session->lex;
 
673
  LEX *lex= session->getLex();
674
674
  const CHARSET_INFO * const cs= session->charset();
675
675
  unsigned char *state_map= cs->state_map;
676
676
  unsigned char *ident_map= cs->ident_map;
2068
2068
void LEX::cleanup_after_one_table_open()
2069
2069
{
2070
2070
  /*
2071
 
    session->lex->derived_tables & additional units may be set if we open
2072
 
    a view. It is necessary to clear session->lex->derived_tables flag
 
2071
    session->getLex()->derived_tables & additional units may be set if we open
 
2072
    a view. It is necessary to clear session->getLex()->derived_tables flag
2073
2073
    to prevent processing of derived tables during next openTablesLock
2074
2074
    if next table is a real table and cleanup & remove underlying units
2075
 
    NOTE: all units will be connected to session->lex->select_lex, because we
 
2075
    NOTE: all units will be connected to session->getLex()->select_lex, because we
2076
2076
    have not UNION on most upper level.
2077
2077
    */
2078
2078
  if (all_selects_list != &select_lex)