Fix new crash in ConnectionInfo (mouse over server version status panel)

This commit is contained in:
Ansgar Becker
2019-06-30 08:59:49 +02:00
parent 92a34000e3
commit a9fd8be2f3

View File

@ -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;