This commit is contained in:
Sergei Golubchik 2015-11-20 09:15:30 +01:00
parent df25018c2a
commit e52c753ab9
2 changed files with 2 additions and 2 deletions

View file

@ -64,7 +64,6 @@ ENDIF(NOT MAX_INDEXES)
IF (${MAX_INDEXES} GREATER 128)
MESSAGE(FATAL_ERROR "MAX_INDEXES values greater than 128 is not supported!")
ENDIF()
MESSAGE(STATUS "Configuring with MAX_INDEXES = ${MAX_INDEXES}")
IF(UNIX AND NOT APPLE)
# Note, that generally one should not change settings depending

View file

@ -5934,8 +5934,9 @@ remove_key:
alter_info->flags&= ~(Alter_info::ALTER_ADD_INDEX |
Alter_info::ADD_FOREIGN_KEY);
}
else if (key->or_replace())
else
{
DBUG_ASSERT(key->or_replace());
Alter_drop::drop_type type= (key->type == Key::FOREIGN_KEY) ?
Alter_drop::FOREIGN_KEY : Alter_drop::KEY;
Alter_drop *ad= new Alter_drop(type, key->name.str, FALSE);