~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/natural_join_column.h

  • Committer: Brian Aker
  • Date: 2008-10-06 06:47:29 UTC
  • Revision ID: brian@tangent.org-20081006064729-2i9mhjkzyvow9xsm
RemoveĀ uint.

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
#ifndef DRIZZLED_NATURAL_JOIN_COLUMN_H
21
21
#define DRIZZLED_NATURAL_JOIN_COLUMN_H
22
22
 
23
 
#include "drizzled/memory/sql_alloc.h"
24
 
 
25
 
namespace drizzled
26
 
{
27
 
 
28
23
class Field;
29
 
class TableList;
30
 
class Item;
 
24
class Field_translator;
31
25
 
32
26
/*
33
27
  Column reference of a NATURAL/USING join. Since column references in
34
28
  joins can be both from views and stored tables, may point to either a
35
 
  Field (for tables).
 
29
  Field (for tables), or a Field_translator (for views).
36
30
*/
37
31
 
38
 
class Natural_join_column: public memory::SqlAlloc
 
32
class Natural_join_column: public Sql_alloc
39
33
{
40
34
public:
41
35
  Field            *table_field; /* Column reference of table or temp view. */
49
43
  */
50
44
  bool is_common;
51
45
public:
 
46
  Natural_join_column(Field_translator *field_param, TableList *tab);
52
47
  Natural_join_column(Field *field_param, TableList *tab);
53
48
  const char *name();
54
 
  Item *create_item(Session *session);
 
49
  Item *create_item(THD *thd);
55
50
  Field *field();
56
51
  const char *table_name();
57
52
  const char *db_name();
58
53
};
59
54
 
60
 
} /* namespace drizzled */
 
55
 
61
56
 
62
57
#endif /* DRIZZLED_NATURAL_JOIN_COLUMN_H */