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

 <instance of acs::db::nsdb-postgresql[i]> call acs_message new \
    [ -dbn dbn ] -message_id message_id  -reply_to reply_to  \
    -sent_date sent_date  -sender sender  -rfc822_id rfc822_id  \
    -title title  -description description  -mime_type mime_type  \
    -text text  -data data  -parent_id parent_id  \
    -context_id context_id  -creation_user creation_user  \
    -creation_ip creation_ip  -object_type object_type  \
    -is_live is_live  -package_id package_id 

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

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

Switches:
-dbn (optional)
-message_id (required)
-reply_to (required)
-sent_date (required)
-sender (required)
-rfc822_id (required)
-title (required)
-description (required)
-mime_type (required)
-text (required)
-data (required)
-parent_id (required)
-context_id (required)
-creation_user (required)
-creation_ip (required)
-object_type (required)
-is_live (required)
-package_id (required)

Testcases:
No testcase defined.
Source code:
db_with_handle -dbn $dbn __DB {
   set s [ns_pg_bind 0or1row $__DB {select acs_message__new(CAST(:message_id AS integer),CAST(:reply_to AS integer),:sent_date,CAST(:sender AS integer),:rfc822_id,:title,:description,:mime_type,:text,CAST(:data AS integer),CAST(:parent_id AS integer),CAST(:context_id AS integer),CAST(:creation_user AS integer),:creation_ip,:object_type,:is_live,CAST(:package_id AS integer))}]
   return [ns_set value $s 0]
}
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: