mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2025-08-26 03:01:07 +08:00
Fix AV on opening one of the CREATE or ALTER TABLE dialogs for the second time, after an automatic reconnect. Related: r2312, r2328 and issue #858
This commit is contained in:
@ -6899,8 +6899,11 @@ begin
|
||||
Combobox.Items.Clear;
|
||||
|
||||
// Cache datasets
|
||||
if (dsShowEngines = nil) and (dsHaveEngines = nil) then
|
||||
if ((dsShowEngines = nil) or (dsShowEngines.State = dsInactive)) and
|
||||
((dsHaveEngines = nil) or (dsShowEngines.State = dsInactive)) then
|
||||
begin
|
||||
FreeAndNil(dsShowEngines);
|
||||
FreeAndNil(dsHaveEngines);
|
||||
dsShowEngines := GetResults('SHOW ENGINES', True);
|
||||
if dsShowEngines = nil then
|
||||
dsHaveEngines := GetResults('SHOW VARIABLES LIKE ''have%''');
|
||||
|
Reference in New Issue
Block a user