The following lines contain the word 'select', 'insert', 'update' or 'delete':
select
pl_regy_prps_id,
effective_start_date,
effective_end_date,
pl_regy_prps_cd,
pl_regy_bod_id,
business_group_id,
prp_attribute_category,
prp_attribute1,
prp_attribute2,
prp_attribute3,
prp_attribute4,
prp_attribute5,
prp_attribute6,
prp_attribute7,
prp_attribute8,
prp_attribute9,
prp_attribute10,
prp_attribute11,
prp_attribute12,
prp_attribute13,
prp_attribute14,
prp_attribute15,
prp_attribute16,
prp_attribute17,
prp_attribute18,
prp_attribute19,
prp_attribute20,
prp_attribute21,
prp_attribute22,
prp_attribute23,
prp_attribute24,
prp_attribute25,
prp_attribute26,
prp_attribute27,
prp_attribute28,
prp_attribute29,
prp_attribute30,
object_version_number
from ben_pl_regy_prp_f
where pl_regy_prps_id = p_pl_regy_prps_id
and p_effective_date
between effective_start_date and effective_end_date;
p_delete out nocopy boolean,
p_future_change out nocopy boolean,
p_delete_next_change out nocopy boolean) is
--
l_proc varchar2(72) := g_package||'find_dt_del_modes';
select t.pl_regy_bod_id
from ben_pl_regy_prp_f t
where t.pl_regy_prps_id = p_base_key_value
and p_effective_date
between t.effective_start_date and t.effective_end_date;
p_delete => p_delete,
p_future_change => p_future_change,
p_delete_next_change => p_delete_next_change);
p_update out nocopy boolean,
p_update_override out nocopy boolean,
p_update_change_insert out nocopy boolean) is
--
l_proc varchar2(72) := g_package||'find_dt_upd_modes';
p_update => p_update,
p_update_override => p_update_override,
p_update_change_insert => p_update_change_insert);
update ben_pl_regy_prp_f t
set t.effective_end_date = p_new_effective_end_date,
t.object_version_number = l_object_version_number
where t.pl_regy_prps_id = p_base_key_value
and p_effective_date
between t.effective_start_date and t.effective_end_date;
select
pl_regy_prps_id,
effective_start_date,
effective_end_date,
pl_regy_prps_cd,
pl_regy_bod_id,
business_group_id,
prp_attribute_category,
prp_attribute1,
prp_attribute2,
prp_attribute3,
prp_attribute4,
prp_attribute5,
prp_attribute6,
prp_attribute7,
prp_attribute8,
prp_attribute9,
prp_attribute10,
prp_attribute11,
prp_attribute12,
prp_attribute13,
prp_attribute14,
prp_attribute15,
prp_attribute16,
prp_attribute17,
prp_attribute18,
prp_attribute19,
prp_attribute20,
prp_attribute21,
prp_attribute22,
prp_attribute23,
prp_attribute24,
prp_attribute25,
prp_attribute26,
prp_attribute27,
prp_attribute28,
prp_attribute29,
prp_attribute30,
object_version_number
from ben_pl_regy_prp_f
where pl_regy_prps_id = p_pl_regy_prps_id
and p_effective_date
between effective_start_date and effective_end_date
for update nowait;
If (p_datetrack_mode <> 'INSERT') then
--
-- We must select and lock the current row.
--
Open C_Sel1;