~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/table_list.h

  • Committer: Brian Aker
  • Date: 2009-05-23 00:24:25 UTC
  • mfrom: (1034.1.7 merge)
  • Revision ID: brian@gaz-20090523002425-rd9slkqwe2ip0xkh
Merge of Brian

Show diffs side-by-side

added added

removed removed

Lines of Context:
71
71
class TableList
72
72
{
73
73
public:
74
 
  TableList() {}                          /* Remove gcc warning */
 
74
  TableList():
 
75
    next_local(NULL),
 
76
    next_global(NULL),
 
77
    prev_global(NULL),
 
78
    db(NULL),
 
79
    alias(NULL),
 
80
    table_name(NULL),
 
81
    schema_table_name(NULL),
 
82
    option(NULL),
 
83
    on_expr(NULL),
 
84
    sj_on_expr(NULL),
 
85
    sj_inner_tables(0),
 
86
    sj_in_exprs(0),
 
87
    table_id(0),
 
88
    table(NULL),
 
89
    prep_on_expr(NULL),
 
90
    cond_equal(NULL),
 
91
    natural_join(NULL),
 
92
    is_natural_join(false),
 
93
    is_join_columns_complete(false),
 
94
    schema_table_reformed(false),
 
95
    straight(false),
 
96
    updating(false), 
 
97
    force_index(false),
 
98
    ignore_leaves(false),
 
99
    create(false),
 
100
    join_using_fields(NULL),
 
101
    join_columns(NULL),
 
102
    next_name_resolution_table(NULL),
 
103
    index_hints(NULL),
 
104
    derived_result(NULL),
 
105
    correspondent_table(NULL),
 
106
    derived(NULL),
 
107
    schema_table(NULL),
 
108
    schema_select_lex(NULL),
 
109
    schema_table_param(NULL),
 
110
    select_lex(NULL),
 
111
    next_leaf(NULL),
 
112
    // lock_type
 
113
    outer_join(0),
 
114
    shared(0),  
 
115
    i_s_requested_object(0),
 
116
    db_length(0),
 
117
    table_name_length(0),
 
118
    dep_tables(0),
 
119
    on_expr_dep_tables(0),
 
120
    nested_join(NULL),
 
121
    embedding(NULL),
 
122
    join_list(NULL),
 
123
    db_type(NULL),
 
124
    // timestamp_buffer[20];
 
125
    lock_timeout(0),
 
126
    lock_transactional(false),
 
127
    internal_tmp_table(false),
 
128
    is_alias(false),
 
129
    is_fqtn(false),
 
130
    has_db_lookup_value(false),
 
131
    has_table_lookup_value(false),
 
132
    table_open_method(0)
 
133
    // schema_table_state(0)
 
134
    {}                          /* Remove gcc warning */
75
135
 
76
136
  /*
77
137
    List of tables local to a subquery (used by SQL_LIST). Considers
79
139
    in Select_Lex::add_table_to_list() -> table_list.link_in_list().
80
140
  */
81
141
  TableList *next_local;
 
142
 
82
143
  /* link in a global list of all queries tables */
83
 
  TableList *next_global, **prev_global;
84
 
  char          *db, *alias, *table_name, *schema_table_name;
85
 
  char          *option;                /* Used by cache index  */
 
144
  TableList *next_global; 
 
145
  TableList **prev_global;
 
146
 
 
147
  char          *db;
 
148
  char          *alias;
 
149
  char          *table_name;
 
150
  char          *schema_table_name;
 
151
  char    *option;                /* Used by cache index  */
86
152
  Item          *on_expr;               /* Used with outer join */
87
153
  Item          *sj_on_expr;
88
154
  /*
212
278
  bool has_table_lookup_value;
213
279
  uint32_t table_open_method;
214
280
  enum enum_schema_table_state schema_table_state;
 
281
 
215
282
  void set_underlying_merge();
216
283
  bool setup_underlying(Session *session);
 
284
 
217
285
  /*
218
286
    If you change placeholder(), please check the condition in
219
287
    check_transactional_lock() too.