1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

fix for the 2361 bug: ALTER TABLE ... DROP PRIMARY KEY drops a non-primary key

"PRIMARY" has been replaced by primary_key_name.
This commit is contained in:
ram@gw.mysql.r18.ru
2004-01-14 16:01:55 +04:00
parent 4b91183cde
commit 7b652e9a29
6 changed files with 14 additions and 13 deletions

View File

@ -1167,7 +1167,7 @@ store_create_info(THD *thd, TABLE *table, String *packet)
bool found_primary=0;
packet->append(",\n ", 4);
if (i == primary_key && !strcmp(key_info->name,"PRIMARY"))
if (i == primary_key && !strcmp(key_info->name, primary_key_name))
{
found_primary=1;
packet->append("PRIMARY ", 8);