~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_derived.cc

  • Committer: Brian Aker
  • Date: 2009-02-07 22:33:25 UTC
  • Revision ID: brian@tangent.org-20090207223325-5ipgldvw1pkghboq
typdef class removal (just... use the name of the class).

Show diffs side-by-side

added added

removed removed

Lines of Context:
95
95
bool mysql_derived_prepare(Session *session, LEX *,
96
96
                           TableList *orig_table_list)
97
97
{
98
 
  Select_Lex_UNIT *unit= orig_table_list->derived;
 
98
  Select_Lex_Unit *unit= orig_table_list->derived;
99
99
  uint64_t create_options;
100
100
  bool res= false;
101
101
  if (unit)
111
111
    if (!(derived_result= new select_union))
112
112
      return(true); // out of memory
113
113
 
114
 
    // Select_Lex_unit::prepare correctly work for single select
 
114
    // Select_Lex_Unit::prepare correctly work for single select
115
115
    if ((res= unit->prepare(session, derived_result, 0)))
116
116
      goto exit;
117
117
 
200
200
bool mysql_derived_filling(Session *session, LEX *lex, TableList *orig_table_list)
201
201
{
202
202
  Table *table= orig_table_list->table;
203
 
  Select_Lex_UNIT *unit= orig_table_list->derived;
 
203
  Select_Lex_Unit *unit= orig_table_list->derived;
204
204
  bool res= false;
205
205
 
206
206
  /*check that table creation pass without problem and it is derived table */