1
0
mirror of https://github.com/MariaDB/server.git synced 2025-12-24 11:21:21 +03:00

better fix BUG#2361: ALTER TABLE ... DROP PRIMARY KEY drops a non-primary key

This commit is contained in:
unknown
2004-01-28 18:35:52 +01:00
parent d01e810128
commit 832ea1206d
8 changed files with 20 additions and 24 deletions

View File

@@ -2319,7 +2319,7 @@ mysql_execute_command(THD *thd)
lex->key_list, lex->drop_list, lex->alter_list,
select_lex->order_list.elements,
(ORDER *) select_lex->order_list.first,
lex->drop_primary, lex->duplicates,
lex->duplicates,
lex->alter_keys_onoff,
lex->tablespace_op,
lex->simple_alter);
@@ -2466,7 +2466,7 @@ mysql_execute_command(THD *thd)
tables, lex->create_list,
lex->key_list, lex->drop_list, lex->alter_list,
0, (ORDER *) 0,
0, DUP_ERROR);
DUP_ERROR);
}
else
res = mysql_optimize_table(thd, tables, &lex->check_opt);