~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/table_list.h

  • Committer: Monty Taylor
  • Date: 2009-05-22 17:09:30 UTC
  • mfrom: (1032 staging)
  • mto: This revision was merged to the branch mainline in revision 1036.
  • Revision ID: mordred@inaugust.com-20090522170930-tmcvwptt9udyocyo
MergedĀ fromĀ trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
94
94
  table_map     sj_inner_tables;
95
95
  /* Number of IN-compared expressions */
96
96
  uint32_t          sj_in_exprs;
 
97
  uint32_t          table_id; /* table id (from binlog) for opened table */
 
98
  Table        *table;    /* opened table */
97
99
  /*
98
100
    The structure of ON expression presented in the member above
99
101
    can be changed during certain optimizations. This member
117
119
    to the other operand of 'this'.
118
120
  */
119
121
  bool is_natural_join;
 
122
 
 
123
  /* true if join_columns contains all columns of this table reference. */
 
124
  bool is_join_columns_complete;
 
125
 
 
126
  /*
 
127
    True when the view field translation table is used to convert
 
128
    schema table fields for backwards compatibility with SHOW command.
 
129
  */
 
130
  bool schema_table_reformed;
 
131
 
 
132
  bool          straight;               /* optimize with prev table */
 
133
  bool          updating;               /* for replicate-do/ignore table */
 
134
  bool          force_index;            /* prefer index over table scan */
 
135
  bool          ignore_leaves;          /* preload only non-leaf nodes */
 
136
 
 
137
  /*
 
138
    This TableList object corresponds to the table to be created
 
139
    so it is possible that it does not exist (used in CREATE TABLE
 
140
    ... SELECT implementation).
 
141
  */
 
142
  bool          create;
 
143
 
120
144
  /* Field names in a USING clause for JOIN ... USING. */
121
145
  List<String> *join_using_fields;
122
146
  /*
124
148
    an operand of such a join.
125
149
  */
126
150
  List<Natural_join_column> *join_columns;
127
 
  /* true if join_columns contains all columns of this table reference. */
128
 
  bool is_join_columns_complete;
129
151
 
130
152
  /*
131
153
    List of nodes in a nested join tree, that should be considered as
137
159
  TableList *next_name_resolution_table;
138
160
  /* Index names in a "... JOIN ... USE/IGNORE INDEX ..." clause. */
139
161
  List<Index_hint> *index_hints;
140
 
  Table        *table;    /* opened table */
141
 
  uint32_t          table_id; /* table id (from binlog) for opened table */
142
162
  /*
143
163
    select_result for derived table to pass it from table creation to table
144
164
    filling procedure
155
175
  Select_Lex_Unit *derived;             /* Select_Lex_Unit of derived table */
156
176
  InfoSchemaTable *schema_table;        /* Information_schema table */
157
177
  Select_Lex    *schema_select_lex;
158
 
  /*
159
 
    True when the view field translation table is used to convert
160
 
    schema table fields for backwards compatibility with SHOW command.
161
 
  */
162
 
  bool schema_table_reformed;
163
178
  Tmp_Table_Param *schema_table_param;
164
179
  /* link to select_lex where this table was used */
165
180
  Select_Lex    *select_lex;
170
185
  */
171
186
  TableList     *next_leaf;
172
187
  thr_lock_type lock_type;
173
 
  uint          outer_join;             /* Which join type */
174
 
  uint          shared;                 /* Used in multi-upd */
 
188
  uint32_t              outer_join;             /* Which join type */
 
189
  uint32_t              shared;                 /* Used in multi-upd */
 
190
  uint32_t i_s_requested_object;
175
191
  size_t        db_length;
176
192
  size_t        table_name_length;
177
 
  bool          straight;               /* optimize with prev table */
178
 
  bool          updating;               /* for replicate-do/ignore table */
179
 
  bool          force_index;            /* prefer index over table scan */
180
 
  bool          ignore_leaves;          /* preload only non-leaf nodes */
181
193
  table_map     dep_tables;             /* tables the table depends on      */
182
194
  table_map     on_expr_dep_tables;     /* tables on expression depends on  */
183
195
  nested_join_st *nested_join;   /* if the element is a nested join  */
185
197
  List<TableList> *join_list;/* join list the table belongs to   */
186
198
  StorageEngine *db_type;               /* table_type for handler */
187
199
  char          timestamp_buffer[20];   /* buffer for timestamp (19+1) */
188
 
  /*
189
 
    This TableList object corresponds to the table to be created
190
 
    so it is possible that it does not exist (used in CREATE TABLE
191
 
    ... SELECT implementation).
192
 
  */
193
 
  bool          create;
194
200
  /* For transactional locking. */
195
201
  int           lock_timeout;           /* NOWAIT or WAIT [X]               */
196
202
  bool          lock_transactional;     /* If transactional lock requested. */
202
208
  */
203
209
  bool          is_fqtn;
204
210
 
205
 
  uint32_t i_s_requested_object;
206
211
  bool has_db_lookup_value;
207
212
  bool has_table_lookup_value;
208
213
  uint32_t table_open_method;