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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user