mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2025-08-16 03:30:50 +08:00
Fix new crash in ConnectionInfo (mouse over server version status panel)
This commit is contained in:
@ -5020,6 +5020,7 @@ var
|
||||
begin
|
||||
Result := Inherited;
|
||||
Result.Values[f_('Client version (%s)', [FLib.DllFile])] := DecodeApiString(FLib.mysql_get_client_info);
|
||||
if FActive then begin
|
||||
Infos := DecodeApiString(FLib.mysql_stat(FHandle));
|
||||
rx := TRegExpr.Create;
|
||||
rx.ModifierG := False;
|
||||
@ -5036,6 +5037,7 @@ begin
|
||||
end;
|
||||
rx.Free;
|
||||
end;
|
||||
end;
|
||||
|
||||
|
||||
function TAdoDBConnection.ConnectionInfo: TStringList;
|
||||
@ -5044,6 +5046,7 @@ var
|
||||
rx: TRegExpr;
|
||||
begin
|
||||
Result := Inherited;
|
||||
if FActive then begin
|
||||
// clear out password
|
||||
ConnectionString := FAdoHandle.ConnectionString;
|
||||
rx := TRegExpr.Create;
|
||||
@ -5053,6 +5056,7 @@ begin
|
||||
rx.Free;
|
||||
Result.Values[_('Connection string')] := ConnectionString;
|
||||
end;
|
||||
end;
|
||||
|
||||
|
||||
function TPgConnection.ConnectionInfo: TStringList;
|
||||
|
Reference in New Issue
Block a user