~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/foreign_key.h

  • Committer: Brian Aker
  • Date: 2010-08-17 19:01:29 UTC
  • mto: This revision was merged to the branch mainline in revision 1718.
  • Revision ID: brian@tangent.org-20100817190129-g6oyks6y8aslucom
Remove final recursive mutex.

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
21
21
#ifndef DRIZZLED_FOREIGN_KEY_H
22
22
#define DRIZZLED_FOREIGN_KEY_H
23
23
 
24
 
#include <drizzled/memory/sql_alloc.h>
25
 
#include <drizzled/key.h>
26
 
#include <drizzled/key_part_spec.h>
27
 
#include <drizzled/sql_list.h>
28
 
#include <drizzled/cursor.h> /* for default_key_create_info */
29
 
#include <drizzled/message/table.pb.h>
 
24
#include "drizzled/memory/sql_alloc.h"
 
25
#include "drizzled/key.h"
 
26
#include "drizzled/key_part_spec.h"
 
27
#include "drizzled/sql_list.h"
 
28
#include "drizzled/cursor.h" /* for default_key_create_info */
 
29
#include "drizzled/message/table.pb.h"
30
30
 
31
31
namespace drizzled
32
32
{
36
36
 
37
37
namespace memory { class Root; }
38
38
 
39
 
void add_foreign_key_to_table_message(
40
 
    message::Table *table_message,
41
 
    const char* fkey_name,
42
 
    List<Key_part_spec> &cols,
43
 
    Table_ident *table,
44
 
    List<Key_part_spec> &ref_cols,
45
 
    message::Table::ForeignKeyConstraint::ForeignKeyOption delete_opt_arg,
46
 
    message::Table::ForeignKeyConstraint::ForeignKeyOption update_opt_arg,
47
 
    message::Table::ForeignKeyConstraint::ForeignKeyMatchOption match_opt_arg);
48
 
 
49
 
 
50
39
class Foreign_key: public Key 
51
40
{
52
41
public: