Bug #12375 Wrong ALTER TABLE statement if you try to add PRIMARY KEY
Submitted: 4 Aug 2005 12:15 Modified: 31 Aug 2005 17:39
Reporter: Victoria Reznichenko Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Query Browser Severity:S3 (Non-critical)
Version:1.1.12 OS:Linux (linux)
Assigned to: Vladimir Kolesnikov CPU Architecture:Any

[4 Aug 2005 12:15] Victoria Reznichenko
Description:
If you try to add PRIMARY KEY via 'Indicies' tab, Query Browser produces wrong ALTER TABLE statement: ALTER TABLE `test`.`t1` ADD INDEX `new_index`(`id`);

How to repeat:
1. create test table: create table t1(id int, str varchar(10));
2. Right click on the table and choose 'Edit'
3. Go to 'Indicies' tab
4. Press '+' and specify index and and Kind - PRIMARY
5. Drag and drop id column from the column list.
6. Press "Apply changes"
[31 Aug 2005 17:39] Vladimir Kolesnikov
Thank you for your bug report. This issue has been committed to our
source repository of that product and will be incorporated into the
next release.

If necessary, you can access the source repository and build the latest
available version, including the bugfix, yourself. More information 
about accessing the source trees is available at
    http://www.mysql.com/doc/en/Installing_source_tree.html