TBlob Loaded bug?

Wagner


I believe there is a minor bug on TBlob:



procedure TBlob.SetIsNull(const Value: boolean);
begin
  SetLength(FIntData, 0);
  FLoaded := True;
end;


FLoaded should be false in this case.

Eduardo

This is by design. "Loaded" indicates if the blob has been lazy-loaded or not. If you clear the blob value (set is null), then you are "loading" it, which means there is no further data to be loaded from database.