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

 <instance of acs::db::nsdb-postgresql[i]> call acs_message edit_file \
    [ -dbn dbn ] -file_id file_id  [ -title title ] \
    [ -description description ] [ -mime_type mime_type ] \
    [ -data data ] [ -creation_date creation_date ] \
    [ -creation_user creation_user ] [ -creation_ip creation_ip ] \
    [ -is_live is_live ]

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

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

Switches:
-dbn (optional)
-file_id (required)
-title (optional, accept empty)
-description (optional, accept empty)
-mime_type (optional, defaults to "text/plain")
-data (optional, accept empty)
-creation_date (optional, defaults to "sysdate")
-creation_user (optional, accept empty)
-creation_ip (optional, accept empty)
-is_live (optional, defaults to "t")

Testcases:
No testcase defined.
Source code:
db_with_handle -dbn $dbn __DB {
   set s [ns_pg_bind 0or1row $__DB {select acs_message__edit_file(CAST(:file_id AS integer),:title,:description,:mime_type,CAST(:data AS integer),:creation_date,CAST(:creation_user AS integer),:creation_ip,:is_live)}]
   return [ns_set value $s 0]
}
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: