Subject | Re: [firebird-support] trigger -> know changed fields? |
---|---|
Author | Christian Brümmer |
Post date | 2006-02-01T12:57:20Z |
Hi Yves,
Yves Glodt wrote:
IF (new.birthday = old.birthday) THEN BEGIN
new.birthdaychangedflag = 'F';
END ELSE BEGIN
new.birthdaychangedflag = 'T';
END
I'm not aware of an existing list, which has all the changed items
inside. And I guess, you have to react on the changed items individually.
Best regards
Christian
Yves Glodt wrote:
>I wonder if I fire a trigger on update, is there a possibility ofthe manual way:
>knowing which fields have changed, or do I have to do that "manually" by
>comparing .old and .new ?
>
>
IF (new.birthday = old.birthday) THEN BEGIN
new.birthdaychangedflag = 'F';
END ELSE BEGIN
new.birthdaychangedflag = 'T';
END
I'm not aware of an existing list, which has all the changed items
inside. And I guess, you have to react on the changed items individually.
Best regards
Christian