~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/table_list.h

Refreshing from mainline branch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
105
105
    select_lex(NULL),
106
106
    next_leaf(NULL),
107
107
    outer_join(0),
108
 
    shared(0),
109
108
    db_length(0),
110
109
    table_name_length(0),
111
110
    dep_tables(0),
116
115
    db_type(NULL),
117
116
    internal_tmp_table(false),
118
117
    is_alias(false),
119
 
    is_fqtn(false),
120
 
    has_db_lookup_value(false),
121
 
    has_table_lookup_value(false)
 
118
    is_fqtn(false)
122
119
  {}
123
120
 
124
121
  /**
176
173
   */
177
174
  bool create;
178
175
 
 
176
  /*
 
177
    is the table a cartesian join, assumption is yes unless "solved"
 
178
  */
 
179
  bool isCartesian() const;
 
180
 
179
181
  /** Field names in a USING clause for JOIN ... USING. */
180
182
  List<String> *join_using_fields;
181
183
  /**
211
213
  TableList *next_leaf;
212
214
  thr_lock_type lock_type;
213
215
  uint32_t outer_join; ///< Which join type
214
 
  uint32_t shared; ///<Used in multi-upd
215
216
  size_t db_length;
216
217
  size_t table_name_length;
217
218
  table_map dep_tables; ///< tables the table depends on
230
231
   */
231
232
  bool is_fqtn;
232
233
 
233
 
  bool has_db_lookup_value;
234
 
  bool has_table_lookup_value;
235
 
 
236
234
  void set_underlying_merge();
237
235
  bool setup_underlying(Session *session);
238
236
 
405
403
   *  Length of key
406
404
   */
407
405
  uint32_t create_table_def_key(char *key);
 
406
 
 
407
  friend std::ostream& operator<<(std::ostream& output, const TableList &list)
 
408
  {
 
409
    output << "TableList:(";
 
410
    output << list.db;
 
411
    output << ", ";
 
412
    output << list.table_name;
 
413
    output << ", ";
 
414
    output << list.alias;
 
415
    output << ", ";
 
416
    output << "is_natural_join:" << list.is_natural_join;
 
417
    output << ", ";
 
418
    output << "is_join_columns_complete:" << list.is_join_columns_complete;
 
419
    output << ", ";
 
420
    output << "straight:" << list.straight;
 
421
    output << ", ";
 
422
    output << "force_index" << list.force_index;
 
423
    output << ", ";
 
424
    output << "ignore_leaves:" << list.ignore_leaves;
 
425
    output << ", ";
 
426
    output << "create:" << list.create;
 
427
    output << ", ";
 
428
    output << "outer_join:" << list.outer_join;
 
429
    output << ", ";
 
430
    output << "nested_join:" << list.nested_join;
 
431
    output << ")";
 
432
 
 
433
    return output;  // for multiple << operators.
 
434
  }
408
435
};
409
436
 
410
437
void close_thread_tables(Session *session);