attachments::attach (public)
attachments::attach -object_id object_id -attachment_id attachment_id \ [ -approved_p approved_p ]
Defined in packages/attachments/tcl/attachments-procs.tcl
perform the attachment
- Switches:
- -object_id (required)
- -attachment_id (required)
- -approved_p (optional, defaults to
"t"
)- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- attachments_basic_api
Source code: db_dml insert_attachment {}XQL Not present: PostgreSQL, Oracle Generic XQL file: <fullquery name="attachments::attach.insert_attachment"> <querytext> insert into attachments (object_id, item_id, approved_p) values (:object_id, :attachment_id, :approved_p) </querytext> </fullquery>packages/attachments/tcl/attachments-procs.xql