diff options
author | ram@gw.mysql.r18.ru <> | 2004-01-14 16:01:55 +0400 |
---|---|---|
committer | ram@gw.mysql.r18.ru <> | 2004-01-14 16:01:55 +0400 |
commit | 7b652e9a29dbdb883b09c512e1552f492b402f4a (patch) | |
tree | a59a16934279171311c77c8d442a131b753866d8 /sql/sql_help.cc | |
parent | 4b91183cde023fa7d3b6fa5d785bea6243e09496 (diff) | |
download | mariadb-git-7b652e9a29dbdb883b09c512e1552f492b402f4a.tar.gz |
fix for the 2361 bug: ALTER TABLE ... DROP PRIMARY KEY drops a non-primary key
"PRIMARY" has been replaced by primary_key_name.
Diffstat (limited to 'sql/sql_help.cc')
-rw-r--r-- | sql/sql_help.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/sql_help.cc b/sql/sql_help.cc index c40133c04a8..d5516fe3337 100644 --- a/sql/sql_help.cc +++ b/sql/sql_help.cc @@ -274,9 +274,9 @@ int get_topics_for_keyword(THD *thd, TABLE *topics, TABLE *relations, DBUG_ENTER("get_topics_for_keyword"); - if ((iindex_topic= find_type((char*) "PRIMARY", + if ((iindex_topic= find_type((char*) primary_key_name, &topics->keynames, 1+2)-1)<0 || - (iindex_relations= find_type((char*) "PRIMARY", + (iindex_relations= find_type((char*) primary_key_name, &relations->keynames, 1+2)-1)<0) { send_error(thd,ER_CORRUPT_HELP_DB); |