Subject | Re: [IBO] FTS Bugs? |
---|---|
Author | Helen Borrie (TeamIBO) |
Post date | 2002-02-09T01:26:45Z |
At 11:33 AM 09-02-02 +1100, Geoff Worboys wrote:
declare variable EmptyBlob blob sub_type 1;
begin
EmptyBlob := ''; /* assign an empty string - works in Firebird only */
if (BlobCompare (new.MyBlobCol, :EmptyBlob) = 0) then
begin
....
end
else
begin
/* do something with new.MyBlobCol */
...
end
....
end
regards,
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 believe it was a sub_type 1 blob that he was using. It was me thatI think Firebird could handle this:
>suggested the trigger code built for that column was inappropriate for
>a blob (comparing the blob column to a blank string).
>
>Am I wrong? Is firebird now able to automatically translate text
>blobs inside trigger/procedure languages to allow direct text
>assignments and comparisons??
declare variable EmptyBlob blob sub_type 1;
begin
EmptyBlob := ''; /* assign an empty string - works in Firebird only */
if (BlobCompare (new.MyBlobCol, :EmptyBlob) = 0) then
begin
....
end
else
begin
/* do something with new.MyBlobCol */
...
end
....
end
regards,
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