~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/table_list.h

  • Committer: Monty Taylor
  • Date: 2008-10-27 23:19:48 UTC
  • mto: (520.4.12 merge-innodb-plugin)
  • mto: This revision was merged to the branch mainline in revision 563.
  • Revision ID: monty@inaugust.com-20081027231948-3kl6ss04plbakqcr
Split some more things out of common_includes.h.

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
 */
20
20
 
21
21
 
22
 
#ifndef DRIZZLED_TABLE_LIST_H
23
 
#define DRIZZLED_TABLE_LIST_H
 
22
#ifndef DRIZZLED_TMP_TABLE_H
 
23
#define DRIZZLED_TMP_TABLE_H
24
24
 
25
25
/*
26
26
  Table reference in the FROM clause.
57
57
*/
58
58
 
59
59
 
60
 
#include <drizzled/table.h>
 
60
#include "table.h"
61
61
 
62
62
class Index_hint;
63
63
class COND_EQUAL;
73
73
 
74
74
struct nested_join_st;
75
75
 
 
76
enum enum_schema_table_state
 
77
{
 
78
  NOT_PROCESSED= 0,
 
79
  PROCESSED_BY_CREATE_SORT_INDEX,
 
80
  PROCESSED_BY_JOIN_EXEC
 
81
};
 
82
 
 
83
 
76
84
class TableList
77
85
{
78
86
public:
112
120
  */
113
121
  table_map     sj_inner_tables;
114
122
  /* Number of IN-compared expressions */
115
 
  uint32_t          sj_in_exprs;
 
123
  uint32_t          sj_in_exprs; 
116
124
  /*
117
125
    The structure of ON expression presented in the member above
118
126
    can be changed during certain optimizations. This member
243
251
    If you change placeholder(), please check the condition in
244
252
    check_transactional_lock() too.
245
253
  */
246
 
  bool placeholder();
 
254
  bool placeholder()
 
255
  {
 
256
    return derived || schema_table || (create && !table->getDBStat()) || !table;
 
257
  }
247
258
  void print(Session *session, String *str, enum_query_type query_type);
248
259
  bool set_insert_values(MEM_ROOT *mem_root);
249
260
  TableList *find_underlying_table(Table *table);
260
271
  void reinit_before_use(Session *session);
261
272
  Item_subselect *containing_subselect();
262
273
 
263
 
  /*
 
274
  /* 
264
275
    Compiles the tagged hints list and fills up st_table::keys_in_use_for_query,
265
276
    st_table::keys_in_use_for_group_by, st_table::keys_in_use_for_order_by,
266
277
    st_table::force_index and st_table::covering_keys.
267
278
  */
268
279
  bool process_index_hints(Table *table);
269
280
};
270
 
 
271
 
void close_thread_tables(Session *session);
272
 
 
273
 
#endif /* DRIZZLED_TABLE_LIST_H */
 
281
#endif /* DRIZZLED_TMP_TABLE_H */