mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-18 21:49:15 +02:00
* Fix bug ID #30391 (let ReleaseMySQL also return refcount)
git-svn-id: trunk@34510 -
This commit is contained in:
parent
7fec0f92af
commit
b08475b5ba
@ -1832,7 +1832,7 @@ uses
|
|||||||
Function InitialiseMysql(Const LibraryName : AnsiString) : Integer;
|
Function InitialiseMysql(Const LibraryName : AnsiString) : Integer;
|
||||||
Function InitialiseMysql(Const LibraryName : AnsiString; argc: cint; argv:PPchar = Nil; groups:PPchar = nil) : Integer;
|
Function InitialiseMysql(Const LibraryName : AnsiString; argc: cint; argv:PPchar = Nil; groups:PPchar = nil) : Integer;
|
||||||
Function InitialiseMysql(argc:cint = -1; argv:PPchar = nil; groups:PPchar = nil) : Integer;
|
Function InitialiseMysql(argc:cint = -1; argv:PPchar = nil; groups:PPchar = nil) : Integer;
|
||||||
Procedure ReleaseMysql;
|
Function ReleaseMysql : Integer;
|
||||||
|
|
||||||
var MysqlLibraryHandle : TLibHandle;
|
var MysqlLibraryHandle : TLibHandle;
|
||||||
MysqlLoadedLibrary : String;
|
MysqlLoadedLibrary : String;
|
||||||
@ -2015,7 +2015,7 @@ begin
|
|||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
Procedure ReleaseMysql;
|
Function ReleaseMysql : Integer;
|
||||||
|
|
||||||
begin
|
begin
|
||||||
if RefCount> 1 then
|
if RefCount> 1 then
|
||||||
@ -2029,7 +2029,8 @@ begin
|
|||||||
MysqlLibraryHandle := NilHandle;
|
MysqlLibraryHandle := NilHandle;
|
||||||
MysqlLoadedLibrary:='';
|
MysqlLoadedLibrary:='';
|
||||||
end
|
end
|
||||||
end
|
end;
|
||||||
|
Result:=RefCount;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
{$ENDIF}
|
{$ENDIF}
|
||||||
|
Loading…
Reference in New Issue
Block a user