Subject | Re: [firebird-support] tricky trigger |
---|---|
Author | Miroslav Penchev |
Post date | 2006-07-31T20:04:27Z |
На Mon, 31 Jul 2006 17:00:47 -0000
"martinknappe" <martin@...> написа:
trigger will fire infinite loop of BEFORE UPDATE trigger.
Cheers,
--
Miroslav Penchev
"martinknappe" <martin@...> написа:
> hiI do not know what you have in mind with "it doesnt work", but your
>...
> CREATE trigger dicentries_bu0 for dicentries
> active before update position 0
> as
> declare variable wanted_id bigint;
> begin
> for select id from dicentries where asverwid = new.id
> into :wanted_id do begin
> update dicentries
> set
> asverwterm = new.asterm
> where
> ID = :wanted_id;
> end
> end
>
>
> does any of you see why it doesnt work?
>
trigger will fire infinite loop of BEFORE UPDATE trigger.
Cheers,
--
Miroslav Penchev