In Parameter Dialog for Stored Procedure/Function (mySQL) HeidiSQL crashes

[expired user #8405]'s profile image [expired user #8405] posted 9 years ago in General Permalink
Hello,

if i create a new stored procedure/function or change an existing stored procedure/function at mysql, in the parameter dialog heidisql crashes if i hit RETURN at the column with the data type. If i exit this column via mouse, all works good. Only the RETURN let the application crash.

Martin
ansgar's profile image ansgar posted 9 years ago Permalink
Yes, that's a known issue in the TCustomComboBox.KeyDown event. Only happens in cells with such a drop down menu. Same happens for example in the "Foreign keys" tab of the table designer (when editing the structure of a table), then add a foreign key and hit enter in the "Reference table" column.

I spent various hours on that bug, without any luck. In the end I was thinking about an entire rewrite of the grid cell editors. And I already have it half ready, but with lots of new problems.
[expired user #8405]'s profile image [expired user #8405] posted 9 years ago Permalink
Thanks for you feedback. Is it possible to catch the KewDown event before it crash?

I've an other problem with this dialogbox. Any data types are convert to upper case. This is a problem with enum or set values. Can you skip this case converting in enum and set values?
Code modification/commit from ansgar.becker, 9 years ago, revision 4909
Only make first part of data type to uppercase, not the part in parentheses. See http://www.heidisql.com/forum.php?t=17845
ansgar's profile image ansgar posted 9 years ago Permalink
r4909 fixes the data type uppercase conversion so that's applied only to the type name itself, not the part in parentheses after it.

Please login to leave a reply, or register at first.