1
#ifndef DRIZZLED_NATURAL_JOIN_COLUMN_H
2
#define DRIZZLED_NATURAL_JOIN_COLUMN_H
5
class Field_translator;
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).
13
class Natural_join_column: public Sql_alloc
16
Field *table_field; /* Column reference of table or temp view. */
17
TableList *table_ref; /* Original base table/view reference. */
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.
27
Natural_join_column(Field_translator *field_param, TableList *tab);
28
Natural_join_column(Field *field_param, TableList *tab);
30
Item *create_item(THD *thd);
32
const char *table_name();
33
const char *db_name();
38
#endif /* DRIZZLED_NATURAL_JOIN_COLUMN_H */