summaryrefslogtreecommitdiff
path: root/sql/sql_table.cc
diff options
context:
space:
mode:
Diffstat (limited to 'sql/sql_table.cc')
-rw-r--r--sql/sql_table.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/sql/sql_table.cc b/sql/sql_table.cc
index 89699655ab9..95f5d4da24d 100644
--- a/sql/sql_table.cc
+++ b/sql/sql_table.cc
@@ -1189,9 +1189,11 @@ int mysql_alter_table(THD *thd,char *new_db, char *new_name,
switch (keys_onoff)
{
case LEAVE_AS_IS: break;
- case ENABLE: error=table->file->activate_all_index(thd); break;
+ case ENABLE:
+ error=table->file->activate_all_index(thd);
+ break;
case DISABLE:
- table->file->deactivate_non_unique_index(table->file->records);
+ table->file->deactivate_non_unique_index(HA_POS_ERROR);
break;
}
}