~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/natural_join_column.h

  • Committer: Monty Taylor
  • Date: 2008-10-16 06:32:59 UTC
  • mfrom: (518 drizzle)
  • mto: (511.1.5 codestyle)
  • mto: This revision was merged to the branch mainline in revision 521.
  • Revision ID: monty@inaugust.com-20081016063259-fwbqogq7lnezct0l
Merged with trunk.

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
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 */