Subject | Re: [firebird-support] Re: Disable updates based on field value |
---|---|
Author | Ann W. Harrison |
Post date | 2005-03-03T20:55:22Z |
radevojvodic wrote:
does exactly what you want. Until then, you have to use...
if (f2 is not null) and
(old.f3 <> new.f3) or
(old.f3 is null and new.f3 is not null) or
(old.f3 is not null and new.f3 is null) or
(old.f4 <> new.f4) or
(old.f4 is null and new.f4 is not null) or
(old.f4 is not null and new.f4 is null)
exception...
Regards,
An
>In V2, there's a new comparison operator IS [NOT] DISTINCT FROM which
> Thanks Ibrahim,
>
> That will probably work. The only problem with that solution is that
> end-user will complete his task and the value wouldn't change
does exactly what you want. Until then, you have to use...
if (f2 is not null) and
(old.f3 <> new.f3) or
(old.f3 is null and new.f3 is not null) or
(old.f3 is not null and new.f3 is null) or
(old.f4 <> new.f4) or
(old.f4 is null and new.f4 is not null) or
(old.f4 is not null and new.f4 is null)
exception...
Regards,
An