mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-09 19:08:15 +02:00
ID only 32 bit
This commit is contained in:
parent
01d3af48a1
commit
bdf5343770
@ -39,9 +39,9 @@ type
|
||||
|
||||
TPGHandle = Class(TSQLHandle)
|
||||
strict private
|
||||
class var _HID : Int64;
|
||||
class var _HID : Integer;
|
||||
private
|
||||
FHandleID : Int64;
|
||||
FHandleID : Integer;
|
||||
FConnected: Boolean;
|
||||
FCOnnection: TPQConnection;
|
||||
FDBName : String;
|
||||
@ -267,7 +267,7 @@ begin
|
||||
FConnection:=aConnection;
|
||||
FCursorList:=TThreadList.Create;
|
||||
FCursorList.Duplicates:=dupIgnore;
|
||||
FHandleID:=InterlockedIncrement64(_HID);
|
||||
FHandleID:=InterlockedIncrement(_HID);
|
||||
{$IFDEF PQDEBUG}
|
||||
Writeln('>>> ',FHandleID,' [',TThread.CurrentThread.ThreadID, '] allocating handle ');
|
||||
{$ENDIF}
|
||||
|
Loading…
Reference in New Issue
Block a user