Commit e52c753a authored by Sergei Golubchik's avatar Sergei Golubchik

cleanup

parent df25018c
......@@ -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
......
......@@ -5934,8 +5934,9 @@ handle_if_exists_options(THD *thd, TABLE *table, Alter_info *alter_info)
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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment