acs::db::nsdb-postgresql method call news new (public)

 <instance of acs::db::nsdb-postgresql[i]> call news new \
    [ -dbn dbn ] [ -item_id item_id ] [ -locale locale ] \
    [ -publish_date publish_date ] [ -text text ] \
    [ -nls_language nls_language ] [ -title title ] \
    [ -mime_type mime_type ] [ -package_id package_id ] \
    [ -archive_date archive_date ] [ -approval_user approval_user ] \
    [ -approval_date approval_date ] [ -approval_ip approval_ip ] \
    [ -relation_tag relation_tag ] [ -creation_ip creation_ip ] \
    [ -creation_user creation_user ] [ -is_live_p is_live_p ] \
    -lead lead 

Defined in packages/acs-tcl/tcl/00-acs-tcl-init.tcl

Automatically generated method TYPES: integer {character varying} {timestamp with time zone} text {character varying} {character varying} {character varying} integer {timestamp with time zone} integer {timestamp with time zone} {character varying} {character varying} {character varying} integer boolean {character varying}

Switches:
-dbn (optional)
-item_id (optional, accept empty)
-locale (optional, accept empty)
-publish_date (optional, accept empty)
-text (optional, accept empty)
-nls_language (optional, accept empty)
-title (optional, accept empty)
-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)
-relation_tag (optional, accept empty)
-creation_ip (optional, accept empty)
-creation_user (optional, accept empty)
-is_live_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__new(CAST(:item_id AS integer),:locale,:publish_date,:text,:nls_language,:title,:mime_type,CAST(:package_id AS integer),:archive_date,CAST(:approval_user AS integer),:approval_date,:approval_ip,:relation_tag,:creation_ip,CAST(:creation_user AS integer),:is_live_p,:lead)}]
   return [ns_set value $s 0]
}
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: