acs::db::nsdb-postgresql method call content_item set_live_revision (public)
<instance of acs::db::nsdb-postgresql> call content_item set_live_revision \ [ -dbn dbn ] -revision_id revision_id \ [ -publish_status publish_status ] [ -publish_date publish_date ] \ [ -is_latest is_latest ]
Defined in packages/acs-tcl/tcl/00-acs-tcl-init.tcl
Automatically generated method TYPES: integer {character varying} {timestamp with time zone} boolean
- Switches:
- -dbn (optional)
- -revision_id (required)
- -publish_status (optional, defaults to
"ready"
)- -publish_date (optional, defaults to
"now()"
)- -is_latest (optional, defaults to
"f"
)- Testcases:
- No testcase defined.
Source code: db_with_handle -dbn $dbn __DB { set s [ns_pg_bind 0or1row $__DB {select content_item__set_live_revision(CAST(:revision_id AS integer),:publish_status,:publish_date,:is_latest)}] return [ns_set value $s 0] }XQL Not present: Generic, PostgreSQL, Oracle