acs::db::nsdb-postgresql method call news set_approve (public)
<instance of acs::db::nsdb-postgresql> call news set_approve \ [ -dbn dbn ] -revision_id revision_id [ -approve_p approve_p ] \ [ -publish_date publish_date ] [ -archive_date archive_date ] \ [ -approval_user approval_user ] [ -approval_date approval_date ] \ [ -approval_ip approval_ip ] [ -live_revision_p live_revision_p ]
Defined in packages/acs-tcl/tcl/00-acs-tcl-init.tcl
Automatically generated method TYPES: integer {character varying} {timestamp with time zone} {timestamp with time zone} integer {timestamp with time zone} {character varying} boolean
- Switches:
- -dbn (optional)
- -revision_id (required)
- -approve_p (optional, defaults to
"t"
)- -publish_date (optional, accept empty)
- -archive_date (optional, accept empty)
- -approval_user (optional, accept empty)
- -approval_date (optional, defaults to
"current_timestamp"
)- -approval_ip (optional, accept empty)
- -live_revision_p (optional, defaults to
"t"
)- Testcases:
- No testcase defined.
Source code: db_with_handle -dbn $dbn __DB { set s [ns_pg_bind 0or1row $__DB {select news__set_approve(CAST(:revision_id AS integer),:approve_p,:publish_date,:archive_date,CAST(:approval_user AS integer),:approval_date,:approval_ip,:live_revision_p)}] return [ns_set value $s 0] }XQL Not present: Generic, PostgreSQL, Oracle