~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/natural_join_column.h

  • Committer: Monty
  • Date: 2008-11-07 05:51:15 UTC
  • mto: This revision was merged to the branch mainline in revision 579.
  • Revision ID: mordred@palanthas.inaugust.com-20081107055115-0275gvq62buzls77
Fixed a decimal sign thing.

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