~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/table_list.h

  • Committer: Brian Aker
  • Date: 2011-02-04 09:29:39 UTC
  • mfrom: (2139.3.6 catalogs)
  • mto: This revision was merged to the branch mainline in revision 2144.
  • Revision ID: brian@tangent.org-20110204092939-nlwrimamw0fxxhgl
Main bit of this patch is that Inno now just uses the identifier so we only
have one spot to make changes for paths.

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
  }
527
533
private:
528
534
  table_map dep_tables; ///< tables the table depends on
529
535
  table_map on_expr_dep_tables; ///< tables on expression depends on
530
 
  NestedJoin *nested_join; ///< if the element is a nested join
 
536
  nested_join_st *nested_join; ///< if the element is a nested join
531
537
  TableList *embedding; ///< nested join containing the table
532
538
  List<TableList> *join_list; ///< join list the table belongs to
533
539
  plugin::StorageEngine *db_type; ///< table_type for handler