The following lines contain the word 'select', 'insert', 'update' or 'delete':
select value
into l_thresh_value
from msc_exception_threshold_values
where exception_type = p_exception_type
and company_id = p_company_id
and company_site_id = p_company_site_id
and inventory_item_id = p_inventory_item_id
and supplier_id = p_supplier_id
and supplier_site_id = p_supplier_site_id;
select value
into l_thresh_value
from msc_exception_threshold_values
where exception_type = p_exception_type
and company_id = p_company_id
and company_site_id = p_company_site_id
and inventory_item_id = p_inventory_item_id
and customer_id = p_customer_id
and customer_site_id = p_customer_site_id;
select value
into l_thresh_value
from msc_exception_threshold_values
where exception_type = p_exception_type
and company_id = p_company_id
and company_site_id = p_company_site_id
and inventory_item_id = p_inventory_item_id
and supplier_id = p_supplier_id;
select value
into l_thresh_value
from msc_exception_threshold_values
where exception_type = p_exception_type
and company_id = p_company_id
and company_site_id = p_company_site_id
and inventory_item_id = p_inventory_item_id
and customer_id = p_customer_id;
select value
into l_thresh_value
from msc_exception_threshold_values
where exception_type = p_exception_type
and company_id = p_company_id
and inventory_item_id = p_inventory_item_id
and supplier_id = p_supplier_id;
select value
into l_thresh_value
from msc_exception_threshold_values
where exception_type = p_exception_type
and company_id = p_company_id
and inventory_item_id = p_inventory_item_id
and customer_id = p_customer_id;
select value
into l_thresh_value
from msc_exception_threshold_values
where exception_type = p_exception_type
and company_id = p_company_id
and supplier_id = p_supplier_id;
select value
into l_thresh_value
from msc_exception_threshold_values
where exception_type = p_exception_type
and company_id = p_company_id
and customer_id = p_customer_id;
select value
into l_thresh_value
from msc_exception_threshold_values
where exception_type = p_exception_type
and company_id = p_company_id
and company_site_id is NULL
and inventory_item_id is NULL
and supplier_id is NULL
and supplier_site_id is NULL
and customer_id is NULL
and customer_site_id is NULL; ---Added for FP-bug#6472941;;