~xnox/ubuntu/saucy/drizzle/merge

« back to all changes in this revision

Viewing changes to plugin/innobase/handler/handler0alter.cc

  • Committer: Bazaar Package Importer
  • Author(s): Monty Taylor
  • Date: 2011-01-01 13:55:03 UTC
  • Revision ID: james.westby@ubuntu.com-20110101135503-x2ub1akxoisgwi6z
Tags: 2010.12.06-0ubuntu4
* Fixed missing build depends.
* Added Lee to uploaders.

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
#include <drizzled/field/varstring.h>
30
30
#include "drizzled/internal/my_sys.h"
31
31
 
32
 
extern "C" {
33
32
#include "log0log.h"
34
33
#include "row0merge.h"
35
34
#include "srv0srv.h"
37
36
#include "trx0roll.h"
38
37
#include "ha_prototypes.h"
39
38
#include "handler0alter.h"
40
 
}
41
39
 
42
40
#include "ha_innodb.h"
43
41
#include "handler0vars.h"
132
130
 
133
131
/*************************************************************//**
134
132
Copies an InnoDB record to table->getInsertRecord(). */
135
 
extern "C" UNIV_INTERN
 
133
UNIV_INTERN
136
134
void
137
135
innobase_rec_to_mysql(
138
136
/*==================*/
182
180
 
183
181
/*************************************************************//**
184
182
Resets table->getInsertRecord(). */
185
 
extern "C" UNIV_INTERN
 
183
UNIV_INTERN
186
184
void
187
185
innobase_rec_reset(
188
186
/*===============*/
1007
1005
                index->to_be_dropped = TRUE;
1008
1006
        }
1009
1007
 
1010
 
        /* If FOREIGN_KEY_CHECK = 1 you may not drop an index defined
 
1008
        /* If FOREIGN_KEY_CHECKS = 1 you may not drop an index defined
1011
1009
        for a foreign key constraint because InnoDB requires that both
1012
 
        tables contain indexes for the constraint.  Note that CREATE
1013
 
        INDEX id ON table does a CREATE INDEX and DROP INDEX, and we
1014
 
        can ignore here foreign keys because a new index for the
1015
 
        foreign key has already been created.
 
1010
        tables contain indexes for the constraint. Such index can
 
1011
        be dropped only if FOREIGN_KEY_CHECKS is set to 0.
 
1012
        Note that CREATE INDEX id ON table does a CREATE INDEX and
 
1013
        DROP INDEX, and we can ignore here foreign keys because a
 
1014
        new index for the foreign key has already been created.
1016
1015
 
1017
1016
        We check for the foreign key constraints after marking the
1018
1017
        candidate indexes for deletion, because when we check for an