Subject | Logic error : : Re: [IBO] FTS Bugs? |
---|---|
Author | Helen Borrie (TeamIBO) |
Post date | 2002-02-09T06:03:48Z |
At 12:26 PM 09-02-02 +1100, I wrote:
if (BlobCompare (new.MyBlobCol, :EmptyBlob) = 1) then
Helen Borrie (TeamIBO Support)
** Please don't email your support questions privately **
Ask on the list and everyone benefits
Don't forget the IB Objects online FAQ - link from any page at www.ibobjects.com
>I think Firebird could handle this:Next line:
>
>declare variable EmptyBlob blob sub_type 1;
>begin
> EmptyBlob := ''; /* assign an empty string - works in Firebird only */
>/* if (BlobCompare (new.MyBlobCol, :EmptyBlob) = 0) then */but BlobCompare() returns 1 for true, 0 for false so the predicate should be
if (BlobCompare (new.MyBlobCol, :EmptyBlob) = 1) then
> beginregards,
> ....
> end
> else
> begin
> /* do something with new.MyBlobCol */
> ...
> end
> ....
>end
Helen Borrie (TeamIBO Support)
** Please don't email your support questions privately **
Ask on the list and everyone benefits
Don't forget the IB Objects online FAQ - link from any page at www.ibobjects.com