~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/table_list.h

  • Committer: Stewart Smith
  • Date: 2010-11-03 03:28:23 UTC
  • mto: (1902.1.1 build) (1910.1.2 build)
  • mto: This revision was merged to the branch mainline in revision 1903.
  • Revision ID: stewart@flamingspork.com-20101103032823-44k21f0njmk97omr
fix docs warning: Title underline (and overline) is too short in brief_history_of_drizzle.rst

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* -*- mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; -*-
2
2
 *  vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
3
3
 *
4
 
 *  Copyright (C) 2008 Sun Microsystems, Inc.
 
4
 *  Copyright (C) 2008 Sun Microsystems
5
5
 *
6
6
 *  This program is free software; you can redistribute it and/or modify
7
7
 *  it under the terms of the GNU General Public License as published by
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
  }
526
527
    return on_expr_dep_tables;
527
528
  }
528
529
 
529
 
  void unlock_table_name();
530
 
  void unlock_table_names(TableList *last_table= NULL);
531
 
 
532
530
private:
 
531
 
533
532
  table_map dep_tables; ///< tables the table depends on
534
533
  table_map on_expr_dep_tables; ///< tables on expression depends on
535
 
  NestedJoin *nested_join; ///< if the element is a nested join
 
534
  nested_join_st *nested_join; ///< if the element is a nested join
536
535
  TableList *embedding; ///< nested join containing the table
537
536
  List<TableList> *join_list; ///< join list the table belongs to
538
537
  plugin::StorageEngine *db_type; ///< table_type for handler
 
538
  char timestamp_buffer[20]; ///< buffer for timestamp (19+1)
539
539
  bool internal_tmp_table;
540
 
 
541
540
  /** true if an alias for this table was specified in the SQL. */
542
541
  bool is_alias;
543
542
 
546
545
   * qualified name (<db_name>.<table_name>).
547
546
   */
548
547
  bool is_fqtn;
549
 
 
550
548
  /**
551
549
   * This TableList object corresponds to the table to be created
552
550
   * so it is possible that it does not exist (used in CREATE TABLE