~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_derived.cc

  • Committer: Monty Taylor
  • Date: 2011-02-13 17:26:39 UTC
  • mfrom: (2157.2.2 give-in-to-pkg-config)
  • mto: This revision was merged to the branch mainline in revision 2166.
  • Revision ID: mordred@inaugust.com-20110213172639-nhy7i72sfhoq13ms
Merged in pkg-config fixes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
  Derived tables
18
18
  These were introduced by Sinisa <sinisa@mysql.com>
19
19
*/
20
 
#include <config.h>
21
 
 
22
 
#include <drizzled/sql_lex.h>
23
 
#include <drizzled/select_union.h>
24
 
#include <drizzled/sql_select.h>
25
 
#include <drizzled/session.h>
26
 
#include <drizzled/open_tables_state.h>
 
20
#include "config.h"
 
21
#include "drizzled/sql_select.h"
27
22
 
28
23
namespace drizzled
29
24
{
159
154
      /* Force read of table stats in the optimizer */
160
155
      table->cursor->info(HA_STATUS_VARIABLE);
161
156
      /* Add new temporary table to list of open derived tables */
162
 
      table->setNext(session->open_tables.getDerivedTables());
163
 
      session->open_tables.setDerivedTables(table);
 
157
      table->setNext(session->getDerivedTables());
 
158
      session->setDerivedTables(table);
164
159
    }
165
160
  }
166
161