mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-28 21:20:29 +02:00
fixed GetClientInfo for dynamically linked client
This commit is contained in:
parent
1670f96d96
commit
4e1b076d8f
@ -127,10 +127,17 @@ end;
|
|||||||
|
|
||||||
|
|
||||||
function TMySQLConnection.GetClientInfo: string;
|
function TMySQLConnection.GetClientInfo: string;
|
||||||
|
|
||||||
begin
|
begin
|
||||||
CheckConnected;
|
{$IfDef LinkDynamically}
|
||||||
// Ask MvC
|
// To make it possible to call this if there's no connection yet
|
||||||
Result:=strpas(pchar(mysql_get_client_info));
|
InitialiseMysql4;
|
||||||
|
{$EndIf}
|
||||||
|
Result:=strpas(mysql_get_client_info());
|
||||||
|
{$IfDef LinkDynamically}
|
||||||
|
ReleaseMysql4;
|
||||||
|
{$EndIf}
|
||||||
|
|
||||||
end;
|
end;
|
||||||
|
|
||||||
function TMySQLConnection.GetServerStatus: String;
|
function TMySQLConnection.GetServerStatus: String;
|
||||||
|
Loading…
Reference in New Issue
Block a user