~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/table_list.h

  • Committer: Lee Bieber
  • Date: 2011-01-25 17:15:03 UTC
  • mfrom: (1994.4.55 drizzle)
  • mto: This revision was merged to the branch mainline in revision 2115.
  • Revision ID: kalebral@gmail.com-20110125171503-zyx91pfdyyw9lty5
Merge Marisa - 684803: Need to update Drizzledump documentation with migration conversions / caveats
Merge Marisa - 686641: Need to document removal of multi-table update/delete from Drizzle

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