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