content::revision::update_content-text (private)

 content::revision::update_content-text -item_id item_id \
    -revision_id revision_id -content content -mime_type mime_type \
    [ -tmp_filename tmp_filename ]

Defined in packages/acs-content-repository/tcl/content-revision-procs.tcl

Switches:
-item_id (required)
-revision_id (required)
-content (required)
-mime_type (required)
-tmp_filename (optional)

Partial Call Graph (max 5 caller/called nodes):
%3 db_dml db_dml (public) content::revision::update_content-text content::revision::update_content-text content::revision::update_content-text->db_dml

Testcases:
No testcase defined.
Source code:
    db_dml update_content "" -blobs [list $content]

    if {$tmp_filename ne ""} {
        # Traditionally, a provided tmp_file is not handled. I
        # could/should be probably supported in the future.
        ns_log warning "::content::revision::update_content-text: provided tmp_filename is ignored"
    }
Generic XQL file:
packages/acs-content-repository/tcl/content-revision-procs.xql

PostgreSQL XQL file:
<fullquery name="content::revision::update_content-text.update_content">
    <querytext>
      update cr_revisions set content=:content where
      revision_id=:revision_id
    </querytext>
</fullquery>
packages/acs-content-repository/tcl/content-revision-procs-postgresql.xql

Oracle XQL file:
<fullquery name="content::revision::update_content-text.update_content">
    <querytext>
        update cr_revisions
        set    content = empty_blob()
        where  revision_id = :revision_id
        returning content into :1
    </querytext>
</fullquery>
packages/acs-content-repository/tcl/content-revision-procs-oracle.xql

[ hide source ] | [ make this the default ]
Show another procedure: