git-svn-id: http://locode01.ad.dom/svn/WEBMIP/trunk@50874 248e525c-4dfb-0310-94bc-949c084e9493

This commit is contained in:
andrew.gilmore
2012-03-19 11:57:19 +00:00
parent 2a0f4900c3
commit 0e9ca75d77
1587 changed files with 500863 additions and 0 deletions

View File

@@ -0,0 +1,44 @@
CREATE OR REPLACE TRIGGER "EFT_NOM".cg$AIS_DEBUG
AFTER INSERT ON DEBUG
DECLARE
idx BINARY_INTEGER := cg$DEBUG.cg$table.FIRST;
cg$rec cg$DEBUG.cg$row_type;
cg$old_rec cg$DEBUG.cg$row_type;
fk_check INTEGER;
BEGIN
-- Application_logic Pre-After-Insert-statement <<Start>>
-- Application_logic Pre-After-Insert-statement << End >>
IF NOT (cg$DEBUG.called_from_package) THEN
WHILE idx IS NOT NULL LOOP
cg$rec.DEBU_ID := cg$DEBUG.cg$table(idx).DEBU_ID;
cg$rec.CREATED_BY := cg$DEBUG.cg$table(idx).CREATED_BY;
cg$rec.CREATED_ON := cg$DEBUG.cg$table(idx).CREATED_ON;
cg$rec.LINE := cg$DEBUG.cg$table(idx).LINE;
cg$rec.LINENO := cg$DEBUG.cg$table(idx).LINENO;
cg$rec.NAME := cg$DEBUG.cg$table(idx).NAME;
cg$rec.CALLER_TYPE := cg$DEBUG.cg$table(idx).CALLER_TYPE;
cg$rec.OWNER := cg$DEBUG.cg$table(idx).OWNER;
cg$DEBUG.validate_foreign_keys_ins(cg$rec);
cg$DEBUG.upd_oper_denorm2( cg$rec,
cg$old_rec,
cg$DEBUG.cg$tableind(idx),
'INS'
);
idx := cg$DEBUG.cg$table.NEXT(idx);
END LOOP;
END IF;
-- Application_logic Post-After-Insert-statement <<Start>>
-- Application_logic Post-After-Insert-statement << End >>
END;
/