FSN#27454 DELETE trigger moet niet aan :NEW refereren

svn path=/Database/trunk/; revision=19106
This commit is contained in:
Jos Groot Lipman
2013-09-16 08:30:48 +00:00
parent 1f0494e5c7
commit d1533cc7d0
2 changed files with 4 additions and 5 deletions

View File

@@ -61,7 +61,7 @@ CREATE_TRIGGER(bes_t_bes_bestelling_a_d)
FOR EACH ROW
BEGIN
-- Alle BES% weggooien. XML generatie zou er toch op falen
fac.clrnotifications ('BES%', :new.bes_bestelling_key);
fac.clrnotifications ('BES%', :old.bes_bestelling_key);
END;
/

View File

@@ -266,10 +266,9 @@ FOR EACH ROW
BEGIN
UPDATE ins_deel
SET ins_alg_ruimte_type = 'R',
ins_alg_ruimte_key = :new.prs_alg_ruimte_key
WHERE ins_deel.ins_alg_ruimte_key = :NEW.prs_werkplek_key
AND ins_deel.ins_alg_ruimte_type = 'W'
AND ins_deel.ins_deel_verwijder IS NULL;
ins_alg_ruimte_key = :old.prs_alg_ruimte_key
WHERE ins_deel.ins_alg_ruimte_key = :old.prs_werkplek_key
AND ins_deel.ins_alg_ruimte_type = 'W';
END;
/
CREATE_TRIGGER(prs_t_prs_ruimteafdeling_B_IU)