mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2025-08-26 11:17:57 +08:00
Fix old query result from disconnected session being displayed as Node|Node|...
This commit is contained in:
@ -1191,9 +1191,14 @@ begin
|
||||
SaveListSetup(ListTables);
|
||||
SaveListSetup(ListColumns);
|
||||
|
||||
|
||||
FreeAndNil(CreateTableForm);
|
||||
|
||||
debug('mem: clearing query and browse data.');
|
||||
SetLength(FDataGridResult.Rows, 0);
|
||||
SetLength(FDataGridResult.Columns, 0);
|
||||
SetLength(FQueryGridResult.Rows, 0);
|
||||
SetLength(FQueryGridResult.Columns, 0);
|
||||
|
||||
ValidateControls(False);
|
||||
Action := caFree;
|
||||
|
||||
@ -1726,12 +1731,6 @@ begin
|
||||
FreeAndNil(DatabasesWanted);
|
||||
FreeAndNil(Databases);
|
||||
|
||||
debug('mem: clearing query and browse data.');
|
||||
SetLength(FDataGridResult.Rows, 0);
|
||||
SetLength(FDataGridResult.Columns, 0);
|
||||
SetLength(FQueryGridResult.Rows, 0);
|
||||
SetLength(FQueryGridResult.Columns, 0);
|
||||
|
||||
// Closing connection
|
||||
if Assigned(FMysqlConn) then begin
|
||||
LogSQL('Closing connection to "'+SessionName+'" session (' + FMysqlConn.Connection.hostname + ') ...');
|
||||
|
Reference in New Issue
Block a user