mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-16 17:59:25 +02:00
* use NULLHANDLE instead of NIL, since exact typing of handle type is unknown
(ptr or integer iow nil or 0) git-svn-id: trunk@20614 -
This commit is contained in:
parent
981ebb4778
commit
14f9e3542d
@ -791,7 +791,7 @@ var ParNr,SQLVarNr : integer;
|
|||||||
with cursor as TIBCursor do
|
with cursor as TIBCursor do
|
||||||
begin
|
begin
|
||||||
TransactionHandle := aTransation.Handle;
|
TransactionHandle := aTransation.Handle;
|
||||||
blobhandle := nil;
|
blobhandle := FB_API_NULLHANDLE;
|
||||||
if isc_create_blob(@FStatus[0], @FSQLDatabaseHandle, @TransactionHandle, @blobHandle, @blobId) <> 0 then
|
if isc_create_blob(@FStatus[0], @FSQLDatabaseHandle, @TransactionHandle, @blobHandle, @blobId) <> 0 then
|
||||||
CheckError('TIBConnection.CreateBlobStream', FStatus);
|
CheckError('TIBConnection.CreateBlobStream', FStatus);
|
||||||
|
|
||||||
@ -1269,7 +1269,7 @@ begin
|
|||||||
blobId := PISC_QUAD(@(ABlobBuf^.ConnBlobBuffer));
|
blobId := PISC_QUAD(@(ABlobBuf^.ConnBlobBuffer));
|
||||||
|
|
||||||
TransactionHandle := Atransaction.Handle;
|
TransactionHandle := Atransaction.Handle;
|
||||||
blobHandle := nil;
|
blobHandle := FB_API_NULLHANDLE;
|
||||||
|
|
||||||
if isc_open_blob(@FStatus[0], @FSQLDatabaseHandle, @TransactionHandle, @blobHandle, blobId) <> 0 then
|
if isc_open_blob(@FStatus[0], @FSQLDatabaseHandle, @TransactionHandle, @blobHandle, blobId) <> 0 then
|
||||||
CheckError('TIBConnection.CreateBlobStream', FStatus);
|
CheckError('TIBConnection.CreateBlobStream', FStatus);
|
||||||
|
Loading…
Reference in New Issue
Block a user