xdb.xdb_pv_trig INSTEAD OF insert or delete or update
on xdb.path_view for each row
Type
INSTEAD OF
Event
INSERT OR UPDATE OR DELETE
Column
When
Referencing
REFERENCING NEW AS NEW OLD AS OLD
Body
begin
if inserting then
xdb.xdb_pvtrig_pkg.pvtrig_ins(:new.res, :new.link, :new.path);
/* check that either the REF or the BLOB columns are filled, not both */
end if;
if deleting then
xdb.xdb_pvtrig_pkg.pvtrig_del(:old.res, :old.link, :old.path);
/* check if we get the correct values from two tables in a view */
end if;
if updating then
xdb.xdb_pvtrig_pkg.pvtrig_upd(:old.res, :new.res,
:old.link, :new.link,
:old.path, :new.path );
end if;
end;