~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/table_list.h

Merge with trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
#ifndef DRIZZLED_TABLE_LIST_H
22
22
#define DRIZZLED_TABLE_LIST_H
23
23
 
 
24
#include <drizzled/nested_join.h>
24
25
#include <drizzled/table.h>
25
26
 
26
27
namespace drizzled
41
42
  class StorageEngine;
42
43
}
43
44
 
44
 
struct nested_join_st;
45
 
 
46
45
/**
47
46
 * A Table referenced in the FROM clause.
48
47
 *
151
150
  const char *alias;
152
151
 
153
152
private:
154
 
  char *table_name;
 
153
  const char *table_name;
155
154
 
156
155
public:
157
156
  const char *getTableName()
159
158
    return table_name;
160
159
  }
161
160
 
162
 
  char **getTableNamePtr()
163
 
  {
164
 
    return &table_name;
165
 
  }
166
 
 
167
 
  void setTableName(char *arg)
 
161
  void setTableName(const char *arg)
168
162
  {
169
163
    table_name= arg;
170
164
  }
462
456
    embedding= in_embedding;
463
457
  }
464
458
 
465
 
  void setNestedJoin(nested_join_st *in_nested_join)
 
459
  void setNestedJoin(NestedJoin *in_nested_join)
466
460
  {
467
461
    nested_join= in_nested_join;
468
462
  }
512
506
    return join_list;
513
507
  }
514
508
 
515
 
  nested_join_st *getNestedJoin() const
 
509
  NestedJoin *getNestedJoin() const
516
510
  {
517
511
    return nested_join;
518
512
  }
531
525
  void unlock_table_names(TableList *last_table= NULL);
532
526
 
533
527
private:
534
 
 
535
528
  table_map dep_tables; ///< tables the table depends on
536
529
  table_map on_expr_dep_tables; ///< tables on expression depends on
537
 
  nested_join_st *nested_join; ///< if the element is a nested join
 
530
  NestedJoin *nested_join; ///< if the element is a nested join
538
531
  TableList *embedding; ///< nested join containing the table
539
532
  List<TableList> *join_list; ///< join list the table belongs to
540
533
  plugin::StorageEngine *db_type; ///< table_type for handler
541
 
  char timestamp_buffer[20]; ///< buffer for timestamp (19+1)
542
534
  bool internal_tmp_table;
 
535
 
543
536
  /** true if an alias for this table was specified in the SQL. */
544
537
  bool is_alias;
545
538
 
548
541
   * qualified name (<db_name>.<table_name>).
549
542
   */
550
543
  bool is_fqtn;
 
544
 
551
545
  /**
552
546
   * This TableList object corresponds to the table to be created
553
547
   * so it is possible that it does not exist (used in CREATE TABLE