Bug #43335 Unhandled exception when selecting a storage type for indexes
Submitted: 3 Mar 2009 16:35 Modified: 2 Jun 2009 13:25
Reporter: Leonardo Matos Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Workbench Severity:S2 (Serious)
Version:5.0.30 OSS OS:Windows (XP SP2)
Assigned to: Mike Lischke CPU Architecture:Any
Tags: BTREE, CHECKED, hash, INDEX, index options, indexes, Options, rtree, storage type

[3 Mar 2009 16:35] Leonardo Matos
Description:
First of all, thank you very much for the mysql Workbench. It's a very useful tool, and I can't wait until we get a stable Linux version.

Now about the bug:
Basically, if you try to change the storage type for an index without specifing which index you will be working with, you get an unhandled exception.

How to repeat:
Select Edit a table, and go to the Indexes Tab. Right after clicking the Indexes tab, if you try to change the storage type under the Index Options on the right without specifying an index on the left, you get an unhandled exception.

Sometimes the workbench works and creates a new index with a generic name and gives it the storage type you selected.

Suggested fix:
Since the user didn't selected an index to change the storage type to, make the workbench create a new index with the storage type you select.
[3 Mar 2009 16:37] Leonardo Matos
The exception message

Attachment: Exception.png (image/png, text), 113.55 KiB.

[3 Mar 2009 17:30] Leonardo Matos
BTW, I'm using Windows XP SP2.
[2 Jun 2009 13:25] Mike Lischke
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.

(fixed in 5.1 and 5.2)