* 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:
marco 2012-03-24 12:22:29 +00:00
parent 981ebb4778
commit 14f9e3542d

View File

@ -791,7 +791,7 @@ var ParNr,SQLVarNr : integer;
with cursor as TIBCursor do
begin
TransactionHandle := aTransation.Handle;
blobhandle := nil;
blobhandle := FB_API_NULLHANDLE;
if isc_create_blob(@FStatus[0], @FSQLDatabaseHandle, @TransactionHandle, @blobHandle, @blobId) <> 0 then
CheckError('TIBConnection.CreateBlobStream', FStatus);
@ -1269,7 +1269,7 @@ begin
blobId := PISC_QUAD(@(ABlobBuf^.ConnBlobBuffer));
TransactionHandle := Atransaction.Handle;
blobHandle := nil;
blobHandle := FB_API_NULLHANDLE;
if isc_open_blob(@FStatus[0], @FSQLDatabaseHandle, @TransactionHandle, @blobHandle, blobId) <> 0 then
CheckError('TIBConnection.CreateBlobStream', FStatus);