~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_derived.cc

  • Committer: Brian Aker
  • Date: 2010-11-11 23:25:35 UTC
  • mto: This revision was merged to the branch mainline in revision 1927.
  • Revision ID: brian@tangent.org-20101111232535-13dtcuj2pv0mbtvv
Encapsulate derived tables

Show diffs side-by-side

added added

removed removed

Lines of Context:
154
154
      /* Force read of table stats in the optimizer */
155
155
      table->cursor->info(HA_STATUS_VARIABLE);
156
156
      /* Add new temporary table to list of open derived tables */
157
 
      table->setNext(session->derived_tables);
158
 
      session->derived_tables= table;
 
157
      table->setNext(session->getDerivedTables());
 
158
      session->setDerivedTables(table);
159
159
    }
160
160
  }
161
161