The following lines contain the word 'select', 'insert', 'update' or 'delete':
select pbg.security_group_id
from per_business_groups pbg
, pqh_rule_attributes rla
, pqh_rule_sets rst
where rla.rule_attribute_id = p_rule_attribute_id
and pbg.business_group_id = rst.business_group_id
and rst.rule_set_id = rla.rule_set_id;
select pbg.legislation_code
from per_business_groups pbg
, pqh_rule_attributes rla
, pqh_rule_sets rst
where rla.rule_attribute_id = p_rule_attribute_id
and pbg.business_group_id = rst.business_group_id
and rst.rule_set_id = rla.rule_set_id;
Procedure chk_non_updateable_args
(p_rec in pqh_rla_shd.g_rec_type
) IS
--
l_proc varchar2(72) := g_package || 'chk_non_updateable_args';
End chk_non_updateable_args;
select count(*) into cnt from pqh_rule_attributes where
rule_set_id = p_rec.rule_set_id
and
rule_attribute_id <> nvl(p_rec.rule_attribute_id, 0)
and
((attribute_code is null and p_rec.attribute_code is null) or (attribute_code = p_rec.attribute_code))
and
((operation_code is null and p_rec.operation_code is null) or (operation_code = p_rec.operation_code))
and
((attribute_value is null and p_rec.attribute_value is null) or (attribute_value = p_rec.attribute_value));
select count(*) into cnt from pqh_attributes where attribute_id = to_number(p_rec.attribute_code);
select column_type into att_type from pqh_attributes where
attribute_id = to_number(p_rec.attribute_code);
select to_number(substr(p_rec.attribute_value, 1, 120)) into att_val from dual;
select to_number(substr(p_rec.attribute_value, 120)) into att_val from dual;
select to_number(p_rec.attribute_value) into att_val from dual;
Procedure insert_validate
(p_rec in pqh_rla_shd.g_rec_type
) is
--
l_proc varchar2(72) := g_package||'insert_validate';
End insert_validate;
Procedure update_validate
(p_rec in pqh_rla_shd.g_rec_type
) is
--
l_proc varchar2(72) := g_package||'update_validate';
chk_non_updateable_args
(p_rec => p_rec
);
End update_validate;
Procedure delete_validate
(p_rec in pqh_rla_shd.g_rec_type
) is
--
l_proc varchar2(72) := g_package||'delete_validate';
End delete_validate;