mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2025-08-16 20:11:48 +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;
|
||||||
@ -5035,6 +5036,7 @@ begin
|
|||||||
break;
|
break;
|
||||||
end;
|
end;
|
||||||
rx.Free;
|
rx.Free;
|
||||||
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
|
||||||
@ -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;
|
||||||
@ -5052,6 +5055,7 @@ begin
|
|||||||
ConnectionString := rx.Replace(ConnectionString, '${1}******', True);
|
ConnectionString := rx.Replace(ConnectionString, '${1}******', True);
|
||||||
rx.Free;
|
rx.Free;
|
||||||
Result.Values[_('Connection string')] := ConnectionString;
|
Result.Values[_('Connection string')] := ConnectionString;
|
||||||
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user