Bug #45421 Unable to edit name of index
Submitted: 10 Jun 2009 3:55 Modified: 10 Jun 2009 4:40
Reporter: Diego Medina Email Updates:
Status: Can't repeat Impact on me:
None 
Category:MySQL Workbench Severity:S3 (Non-critical)
Version:5.2.1 Alpha OS:MacOS (10.5)
Assigned to: CPU Architecture:Any

[10 Jun 2009 3:55] Diego Medina
Description:
If you add an index named "i" to a table (like by mistake if you wanted to name it "index")
And click out of the editor, you cannot edit the name any more by double-clicking the "Index name" field.

Same case if you name it "ii"

How to repeat:
1- Start a new file
2- Add a new table using the "Add table" link on the MySQL Model tab
3- Add two columns using the editor that appears at the bottom of the screen

id INT NN
col1 INT

4- Go to the Indices tab
5- Add a new index named    "i"  (no quotes)
6- Click out of the editor
7- Double click over the "i" to edit the name
8- No luck
9- Double click on the "PRIMARY" key, and you will be able to edit the name

I also tried these names with the same result

ii
iii
[10 Jun 2009 4:40] Valeriy Kravchuk
I can not repeat this with 5.2.1 on Mac OS X 10.5.6. Double clicking on any index name (letters, not just edit field) allows me to change index name.
[10 Jun 2009 4:49] Diego Medina
Ah, I know what happened.

Because the name is just one letter, I was clicking to the right of the name, but still "inside" the name field.

Double clicking on the "i" or very close to it on the right, allows me to edit the name.

Would this be a feature request, to be able to edit the name by clicking "anywhere" on the field?

Thanks