~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/foreign_key.h

MergedĀ build.

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
#include "drizzled/sql_list.h"
28
28
#include "drizzled/cursor.h" /* for default_key_create_info */
29
29
 
 
30
namespace drizzled
 
31
{
 
32
 
30
33
class Item;
31
34
class Table_ident;
32
35
 
33
 
namespace drizzled { namespace memory { class Root; } }
 
36
namespace memory { class Root; }
34
37
 
35
38
class Foreign_key: public Key 
36
39
{
76
79
   * If out of memory, a partial copy is returned and an error is set
77
80
   * in Session.
78
81
   */
79
 
  Foreign_key(const Foreign_key &rhs, drizzled::memory::Root *mem_root);
 
82
  Foreign_key(const Foreign_key &rhs, memory::Root *mem_root);
80
83
 
81
84
 
82
85
  /**
84
87
   * 
85
88
   * @see comment for Key_part_spec::clone
86
89
   */
87
 
  virtual Key *clone(drizzled::memory::Root *mem_root) const
 
90
  virtual Key *clone(memory::Root *mem_root) const
88
91
  {
89
92
    return new (mem_root) Foreign_key(*this, mem_root);
90
93
  }
94
97
  bool validate(List<CreateField> &table_fields);
95
98
};
96
99
 
 
100
} /* namespace drizzled */
 
101
 
97
102
#endif /* DRIZZLED_FOREIGN_KEY_H */