acs::db::nsdb-postgresql method call news revision_new (public)
<instance of acs::db::nsdb-postgresql> call news revision_new \ [ -dbn dbn ] -item_id item_id [ -publish_date publish_date ] \ [ -text text ] -title title -description description \ [ -mime_type mime_type ] [ -package_id package_id ] \ [ -archive_date archive_date ] [ -approval_user approval_user ] \ [ -approval_date approval_date ] [ -approval_ip approval_ip ] \ [ -creation_date creation_date ] [ -creation_ip creation_ip ] \ [ -creation_user creation_user ] \ [ -make_active_revision_p make_active_revision_p ] -lead lead
Defined in packages/acs-tcl/tcl/00-acs-tcl-init.tcl
Automatically generated method TYPES: integer {timestamp with time zone} text {character varying} text {character varying} integer {timestamp with time zone} integer {timestamp with time zone} {character varying} {timestamp with time zone} {character varying} integer boolean {character varying}
- Switches:
- -dbn (optional)
- -item_id (required)
- -publish_date (optional, accept empty)
- -text (optional, accept empty)
- -title (required)
- -description (required)
- -mime_type (optional, defaults to
"text/plain"
)- -package_id (optional, accept empty)
- -archive_date (optional, accept empty)
- -approval_user (optional, accept empty)
- -approval_date (optional, accept empty)
- -approval_ip (optional, accept empty)
- -creation_date (optional, defaults to
"current_timestamp"
)- -creation_ip (optional, accept empty)
- -creation_user (optional, accept empty)
- -make_active_revision_p (optional, defaults to
"f"
)- -lead (required)
- Testcases:
- No testcase defined.
Source code: db_with_handle -dbn $dbn __DB { set s [ns_pg_bind 0or1row $__DB {select news__revision_new(CAST(:item_id AS integer),:publish_date,:text,:title,:description,:mime_type,CAST(:package_id AS integer),:archive_date,CAST(:approval_user AS integer),:approval_date,:approval_ip,:creation_date,:creation_ip,CAST(:creation_user AS integer),:make_active_revision_p,:lead)}] return [ns_set value $s 0] }XQL Not present: Generic, PostgreSQL, Oracle