~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/natural_join_column.h

  • Committer: Brian Aker
  • Date: 2008-08-14 20:59:41 UTC
  • Revision ID: brian@tangent.org-20080814205941-rdqc6mqguf50mvoq
Remove SET

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#ifndef DRIZZLED_NATURAL_JOIN_COLUMN_H
2
 
#define DRIZZLED_NATURAL_JOIN_COLUMN_H
3
 
 
4
 
class Field;
5
 
class Field_translator;
6
 
 
7
 
/*
8
 
  Column reference of a NATURAL/USING join. Since column references in
9
 
  joins can be both from views and stored tables, may point to either a
10
 
  Field (for tables), or a Field_translator (for views).
11
 
*/
12
 
 
13
 
class Natural_join_column: public Sql_alloc
14
 
{
15
 
public:
16
 
  Field            *table_field; /* Column reference of table or temp view. */
17
 
  TableList *table_ref; /* Original base table/view reference. */
18
 
  /*
19
 
    True if a common join column of two NATURAL/USING join operands. Notice
20
 
    that when we have a hierarchy of nested NATURAL/USING joins, a column can
21
 
    be common at some level of nesting but it may not be common at higher
22
 
    levels of nesting. Thus this flag may change depending on at which level
23
 
    we are looking at some column.
24
 
  */
25
 
  bool is_common;
26
 
public:
27
 
  Natural_join_column(Field_translator *field_param, TableList *tab);
28
 
  Natural_join_column(Field *field_param, TableList *tab);
29
 
  const char *name();
30
 
  Item *create_item(THD *thd);
31
 
  Field *field();
32
 
  const char *table_name();
33
 
  const char *db_name();
34
 
};
35
 
 
36
 
 
37
 
 
38
 
#endif /* DRIZZLED_NATURAL_JOIN_COLUMN_H */