Bug #50961 Trying to changes FK names
Submitted: 6 Feb 2010 9:31 Modified: 30 Aug 2010 20:34
Reporter: Hadi Susanto Email Updates:
Status: Duplicate Impact on me:
None 
Category:MySQL Workbench: Modeling Severity:S3 (Non-critical)
Version:5.2.15, 5.2.26 OS:Windows
Assigned to: CPU Architecture:Any
Tags: ALTER TABLE, foreign key, table editor

[6 Feb 2010 9:31] Hadi Susanto
Description:
When I try to change the Foreign key name in the 'Alter Table' Form in 'Foreign Keys' Tab the exception occurred. Exception will occur after I specify a FK name and trying to edit the FK name example: from fk_test -> fk_test2. More detailin how to repeat.

How to repeat:
1. Create a new schema and 2 tables
2. Alter table #2 to add a foreign key
3. Go into Foreign Keys tab
4. Give some name ex: fk_test
5. Choose the referenced table
6. return to FK name and press F2
7. Type any character and exception occurred
[7 Feb 2010 14:35] Valeriy Kravchuk
Sorry, but I can not repeat this on 64-bit XP.
[9 Feb 2010 12:47] Hadi Susanto
I'm using Windows 7 32-bit with .NET Framework 3.5 SP 1 installed. Here I included the error stack trace.

Exception = System.NullReferenceException
Message = Object reference not set to an instance of an object.
FullText = System.NullReferenceException: Object reference not set to an instance of an object.
   at MySQL.Utilities.AdvNodeTextBox.textBox_TextChanged(Object sender, EventArgs e)
   at System.Windows.Forms.Control.OnTextChanged(EventArgs e)
   at System.Windows.Forms.TextBoxBase.OnTextChanged(EventArgs e)
   at System.Windows.Forms.TextBoxBase.WmReflectCommand(Message& m)
   at System.Windows.Forms.TextBoxBase.WndProc(Message& m)
   at System.Windows.Forms.TextBox.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
[18 Aug 2010 4:05] Roel Van de Paar
Verified on 5.2.26 - have to click around a bit to get it to crash.

---------------------------
Microsoft Visual C++ Runtime Library
---------------------------
Runtime Error!

Program: C:\wb5226\MySQLWorkbench.exe

R6025

- pure virtual function call
---------------------------
OK   
---------------------------
[30 Aug 2010 20:34] Alfredo Kojima
This is a duplicate of bug #55910