[Home] [Help]
52: <> ghr_nre_shd.g_old_rec.noac_remark_id) then
53: --
54: -- raise error as PK has changed
55: --
56: ghr_nre_shd.constraint_error('GHR_NOAC_REMARKS_PK');
57: --
58: elsif not l_api_updating then
59: --
60: -- check if PK is null
62: if p_noac_remark_id is not null then
63: --
64: -- raise error as PK is not null
65: --
66: ghr_nre_shd.constraint_error('GHR_NOAC_REMARKS_PK');
67: --
68: end if;
69: --
70: end if;
135: --
136: -- raise error as FK does not relate to PK in ghr_remarks
137: -- table.
138: --
139: ghr_nre_shd.constraint_error('GHR_NOAC_REMARKS_FK2');
140: --
141: end if;
142: --
143: close c1;
210: --
211: -- raise error as FK does not relate to PK in ghr_nature_of_actions
212: -- table.
213: --
214: ghr_nre_shd.constraint_error('GHR_NOAC_REMARKS_FK1');
215: --
216: end if;
217: --
218: close c1;
472: l_dummy varchar2(1);
473: --
474: cursor c1 is
475: select null
476: from ghr_noac_remarks a
477: where a.nature_of_action_id = p_nature_of_action_id
478: and a.remark_id = p_remark_id;
479: --
480: Begin