~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/table_list.h

  • Committer: Monty Taylor
  • Date: 2010-12-26 03:15:44 UTC
  • mto: This revision was merged to the branch mainline in revision 2038.
  • Revision ID: mordred@inaugust.com-20101226031544-1cf3raipu53fnmyj
Through page.

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
 *
461
462
    embedding= in_embedding;
462
463
  }
463
464
 
464
 
  void setNestedJoin(NestedJoin *in_nested_join)
 
465
  void setNestedJoin(nested_join_st *in_nested_join)
465
466
  {
466
467
    nested_join= in_nested_join;
467
468
  }
511
512
    return join_list;
512
513
  }
513
514
 
514
 
  NestedJoin *getNestedJoin() const
 
515
  nested_join_st *getNestedJoin() const
515
516
  {
516
517
    return nested_join;
517
518
  }
530
531
  void unlock_table_names(TableList *last_table= NULL);
531
532
 
532
533
private:
 
534
 
533
535
  table_map dep_tables; ///< tables the table depends on
534
536
  table_map on_expr_dep_tables; ///< tables on expression depends on
535
 
  NestedJoin *nested_join; ///< if the element is a nested join
 
537
  nested_join_st *nested_join; ///< if the element is a nested join
536
538
  TableList *embedding; ///< nested join containing the table
537
539
  List<TableList> *join_list; ///< join list the table belongs to
538
540
  plugin::StorageEngine *db_type; ///< table_type for handler
 
541
  char timestamp_buffer[20]; ///< buffer for timestamp (19+1)
539
542
  bool internal_tmp_table;
540
 
 
541
543
  /** true if an alias for this table was specified in the SQL. */
542
544
  bool is_alias;
543
545
 
546
548
   * qualified name (<db_name>.<table_name>).
547
549
   */
548
550
  bool is_fqtn;
549
 
 
550
551
  /**
551
552
   * This TableList object corresponds to the table to be created
552
553
   * so it is possible that it does not exist (used in CREATE TABLE