acs::db::nsdb-postgresql method call file_storage new_version (public)

 <instance of acs::db::nsdb-postgresql[i]> call file_storage new_version \
    [ -dbn dbn ] -filename filename  -description description  \
    -mime_type mime_type  -item_id item_id  \
    -creation_user creation_user  -creation_ip creation_ip 

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

Automatically generated method TYPES: {character varying} {character varying} {character varying} integer integer {character varying}

Switches:
-dbn (optional)
-filename (required)
-description (required)
-mime_type (required)
-item_id (required)
-creation_user (required)
-creation_ip (required)

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