apm-file-procs-postgresql.xql
DB Query file
Related Files
- packages/acs-tcl/tcl/apm-file-procs.xql
- packages/acs-tcl/tcl/apm-file-procs.tcl
- packages/acs-tcl/tcl/apm-file-procs-postgresql.xql
- packages/acs-tcl/tcl/apm-file-procs-oracle.xql
[ hide source ] | [ make this the default ]
File Contents
<?xml version="1.0"?> <queryset> <rdbms><type>postgresql</type><version>7.1</version></rdbms> <fullquery name="apm_generate_tarball.update_tarball"> <querytext> update cr_revisions set content = '[set content_file [cr_create_content_file $item_id $revision_id $tmpfile]]' where revision_id = :revision_id </querytext> </fullquery> <fullquery name="apm_generate_tarball.update_content_length"> <querytext> update apm_package_versions set content_length = [cr_file_size $content_file] where version_id = :version_id </querytext> </fullquery> <fullquery name="apm_extract_tarball.distribution_tar_ball_select"> <querytext> select '[cr_fs_path]' || r.content as content, i.storage_type from cr_revisions r, cr_items i where r.item_id = i.item_id and r.revision_id = (select content_item__get_latest_revision(item_id) from apm_package_versions where version_id = :version_id) </querytext> </fullquery> </queryset>