~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/open_tables_state.h

  • 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:
90
90
 
91
91
  virtual query_id_t getQueryId()  const= 0;
92
92
 
 
93
private:
93
94
  Table *derived_tables;
 
95
public:
 
96
 
 
97
 
 
98
  Table *getDerivedTables()
 
99
  {
 
100
    return derived_tables;
 
101
  }
 
102
 
 
103
  void setDerivedTables(Table *arg)
 
104
  {
 
105
    derived_tables= arg;
 
106
  }
 
107
 
 
108
  void clearDerivedTables()
 
109
  {
 
110
    if (derived_tables)
 
111
      derived_tables= NULL; // They should all be invalid by this point
 
112
  }
 
113
 
94
114
  /*
95
115
    During a MySQL session, one can lock tables in two modes: automatic
96
116
    or manual. In automatic mode all necessary tables are locked just before