Bug #12924 Access Violation add or change foreign key
Submitted: 1 Sep 2005 7:17 Modified: 7 Sep 2005 9:52
Reporter: Gerdo Lansing Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Administrator Severity:S2 (Serious)
Version:1.1.2 OS:Windows (Windows XP SP2)
Assigned to: Vladimir Kolesnikov CPU Architecture:Any

[1 Sep 2005 7:17] Gerdo Lansing
Description:
I want to add a Foreign Key to a InnoDB table. The table I want to reference to has two columns as the Primary Key. The MySQL Administrator selects both these columns by default as the Reference columns.
When I remove one of these columns I get the error "access violation at address 00405068".
Sometimes the module is MySQLAdministrator.exe and sometimes it is oleaut32.dll.
I can click on OK in the error message as much as I want, but the message keeps coming up. The difference between these messages is the 'read of address' part.

When I add the Foreign Key manually, using the MySQL command line client, I can set the Foreign Key as desired. So, it is not table or database related.

How to repeat:
- Go to Catalogs
- Open a database
- Open the properties of a table
- Select the Foreign Key tab
- Click the + sign
- Give the refence a name
- Select a in the dropdown list 'Ref. Table'.
- Select a column under '.Reference Column'
- Rightlick this column and select Remove Column.
[1 Sep 2005 19:13] Michael Schiff
I followed the test case supplied by the persons submitting the bug and was able to reproduce the same exact error on the same Admin version and Operating System version.
[2 Sep 2005 8:19] Gerdo Lansing
I forgot to mention that I had the same problem with version 1.0.21.
[7 Sep 2005 9:52] 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