~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/table_list.h

  • Committer: Brian Aker
  • Date: 2008-11-04 15:39:09 UTC
  • mfrom: (575.1.2 devel)
  • Revision ID: brian@tangent.org-20081104153909-c72hn65udxs1ccal
Merge of Monty's work

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#ifdef USE_PRAGMA_INTERFACE
2
 
#pragma interface                       /* gcc class implementation */
3
 
#endif
 
1
/* -*- mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; -*-
 
2
 *  vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
 
3
 *
 
4
 *  Copyright (C) 2008 Sun Microsystems
 
5
 *
 
6
 *  This program is free software; you can redistribute it and/or modify
 
7
 *  it under the terms of the GNU General Public License as published by
 
8
 *  the Free Software Foundation; either version 2 of the License, or
 
9
 *  (at your option) any later version.
 
10
 *
 
11
 *  This program is distributed in the hope that it will be useful,
 
12
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 
13
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
14
 *  GNU General Public License for more details.
 
15
 *
 
16
 *  You should have received a copy of the GNU General Public License
 
17
 *  along with this program; if not, write to the Free Software
 
18
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 
19
 */
4
20
 
5
21
 
6
22
#ifndef DRIZZLED_TMP_TABLE_H
55
71
class Item_subselect;
56
72
class Table;
57
73
 
 
74
struct nested_join_st;
 
75
 
58
76
enum enum_schema_table_state
59
 
 
77
{
60
78
  NOT_PROCESSED= 0,
61
79
  PROCESSED_BY_CREATE_SORT_INDEX,
62
80
  PROCESSED_BY_JOIN_EXEC
102
120
  */
103
121
  table_map     sj_inner_tables;
104
122
  /* Number of IN-compared expressions */
105
 
  uint          sj_in_exprs; 
 
123
  uint32_t          sj_in_exprs; 
106
124
  /*
107
125
    The structure of ON expression presented in the member above
108
126
    can be changed during certain optimizations. This member
147
165
  /* Index names in a "... JOIN ... USE/IGNORE INDEX ..." clause. */
148
166
  List<Index_hint> *index_hints;
149
167
  Table        *table;    /* opened table */
150
 
  uint          table_id; /* table id (from binlog) for opened table */
 
168
  uint32_t          table_id; /* table id (from binlog) for opened table */
151
169
  /*
152
170
    select_result for derived table to pass it from table creation to table
153
171
    filling procedure
221
239
  */
222
240
  bool          is_fqtn;
223
241
 
224
 
  uint i_s_requested_object;
 
242
  uint32_t i_s_requested_object;
225
243
  bool has_db_lookup_value;
226
244
  bool has_table_lookup_value;
227
 
  uint table_open_method;
 
245
  uint32_t table_open_method;
228
246
  enum enum_schema_table_state schema_table_state;
229
247
  void set_underlying_merge();
230
 
  bool setup_underlying(THD *thd);
 
248
  bool setup_underlying(Session *session);
231
249
  void cleanup_items();
232
250
  /*
233
251
    If you change placeholder(), please check the condition in
237
255
  {
238
256
    return derived || schema_table || (create && !table->getDBStat()) || !table;
239
257
  }
240
 
  void print(THD *thd, String *str, enum_query_type query_type);
 
258
  void print(Session *session, String *str, enum_query_type query_type);
241
259
  bool set_insert_values(MEM_ROOT *mem_root);
242
260
  TableList *find_underlying_table(Table *table);
243
261
  TableList *first_leaf_for_name_resolution();
250
268
    Cleanup for re-execution in a prepared statement or a stored
251
269
    procedure.
252
270
  */
253
 
  void reinit_before_use(THD *thd);
 
271
  void reinit_before_use(Session *session);
254
272
  Item_subselect *containing_subselect();
255
273
 
256
274
  /* 
260
278
  */
261
279
  bool process_index_hints(Table *table);
262
280
};
 
281
 
 
282
void close_thread_tables(Session *session);
 
283
 
263
284
#endif /* DRIZZLED_TMP_TABLE_H */