Subject | RE: [ib-support] PROBLEM WITH TRIGGERS AND VIEWS |
---|---|
Author | Marco Lauria |
Post date | 2002-01-16T11:15:49Z |
At 09.12 16/01/2002 +0200, you wrote:
and the procedure inserts in the view this should not happen.
Also I solved the problem simply modifying the procedure so that
it will insert in the base tables instead that on the view and all works
correctly.
The only "AFTER INSERT" trigger that I have on the view simply makes the
insert in the tables.
Regards
Marco
>I do now know very vell, but I may help you if you send detailed informationYes but if the trigger is an AFTER UPDATE
>about your view, trigger and procedure.
>I guess something (if I am wrong please correct me)
>If you have a view, and a trigger (after update) and then a procedure
>called by trigger, and this procedure updates wiew then the I think there
>will be a loop.
and the procedure inserts in the view this should not happen.
Also I solved the problem simply modifying the procedure so that
it will insert in the base tables instead that on the view and all works
correctly.
The only "AFTER INSERT" trigger that I have on the view simply makes the
insert in the tables.
>view calls trigger, then trigger calls procudure and procedure inserts a newIf I have been cleaner now, tell me...
>record, then since view updated trigger will be called again and procedure
>will be called again bla bla bla....
>
>If I understand you, I think you should change the syntax
>sorry for my bad english
>Kursat
Regards
Marco