TZAbstractBlob.IsEmpty

Code samples and contributions from users for ZeosLib's DBOs of version 6.x

Moderators: gto, cipto_kh, EgonHugeist, mdaems

Post Reply
BytePlayer
Fresh Boarder
Fresh Boarder
Posts: 24
Joined: 21.09.2012, 10:13

TZAbstractBlob.IsEmpty

Post by BytePlayer »

In the Unit ZDbcResultSet;

Could anyone explain to me why TZAbstractBlob.IsEmpty is defined as true when fBlobSize < 0 rather than fBLobSize < 1 ? I mean, if it has a blobsize of zero it has no content, right? Otherwise what is the differences between this and IsNull?

function TZAbstractBlob.IsEmpty: Boolean;
begin
Result := FBlobSize < 0;
end;
marsupilami
Platinum Boarder
Platinum Boarder
Posts: 1918
Joined: 17.01.2011, 14:17

Re: TZAbstractBlob.IsEmpty

Post by marsupilami »

Hello BytePlayer,

I am not sure what the inventor of TZAbstractBlob thought when he wrote this code. Could you please open a bug report on our bugtracker?

Best regards,

Jan
Post Reply