~drizzle-trunk/drizzle/development

« back to all changes in this revision

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

  • Committer: Patrick Crews
  • Date: 2010-12-07 20:02:50 UTC
  • Revision ID: gleebix@gmail.com-20101207200250-6a27jgqalgw5bsb5
Added disabled.def file to disable drizzleslap due to Bug#684269.  Need to skip for tarball release this round

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*****************************************************************************
2
2
 
3
 
Copyright (C) 2005, 2010, Innobase Oy. All Rights Reserved.
 
3
Copyright (c) 2005, 2010, Innobase Oy. All Rights Reserved.
4
4
 
5
5
This program is free software; you can redistribute it and/or modify it under
6
6
the terms of the GNU General Public License as published by the Free Software
29
29
#include <drizzled/field/varstring.h>
30
30
#include "drizzled/internal/my_sys.h"
31
31
 
 
32
extern "C" {
32
33
#include "log0log.h"
33
34
#include "row0merge.h"
34
35
#include "srv0srv.h"
36
37
#include "trx0roll.h"
37
38
#include "ha_prototypes.h"
38
39
#include "handler0alter.h"
 
40
}
39
41
 
40
42
#include "ha_innodb.h"
41
43
#include "handler0vars.h"
130
132
 
131
133
/*************************************************************//**
132
134
Copies an InnoDB record to table->getInsertRecord(). */
133
 
UNIV_INTERN
 
135
extern "C" UNIV_INTERN
134
136
void
135
137
innobase_rec_to_mysql(
136
138
/*==================*/
180
182
 
181
183
/*************************************************************//**
182
184
Resets table->getInsertRecord(). */
183
 
UNIV_INTERN
 
185
extern "C" UNIV_INTERN
184
186
void
185
187
innobase_rec_reset(
186
188
/*===============*/
1005
1007
                index->to_be_dropped = TRUE;
1006
1008
        }
1007
1009
 
1008
 
        /* If FOREIGN_KEY_CHECKS = 1 you may not drop an index defined
 
1010
        /* If FOREIGN_KEY_CHECK = 1 you may not drop an index defined
1009
1011
        for a foreign key constraint because InnoDB requires that both
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.
 
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.
1015
1016
 
1016
1017
        We check for the foreign key constraints after marking the
1017
1018
        candidate indexes for deletion, because when we check for an