The following lines contain the word 'select', 'insert', 'update' or 'delete':
SELECT line_number
INTO l_line_number
FROM oe_order_lines
WHERE line_id = p_entity_id;
PROCEDURE Delete_Attachments
(
p_entity_code in varchar2,
p_entity_id in number,
x_return_status out nocopy varchar2
)
------------------------------------------
IS
l_entity_name VARCHAR2(30);
FND_ATTACHED_DOCUMENTS2_PKG.Delete_Attachments
(x_entity_name => l_entity_name
,x_pk1_value => to_char(p_entity_id)
,x_automatically_added_flag => null
-- Bug 3280106
-- Delete all FND one-time documents specific to this entity
,x_delete_document_flag => 'Y'
);
, 'Delete_Attachments'
);
END Delete_Attachments;
select (nvl(max(seq_num),0) + 10)
into l_seq_num
from fnd_attached_documents
where entity_name = l_entity_name
and pk1_value = to_char(p_entity_id);