xo::db::sql::image proc new_revision (public)

 xo::db::sql::image[i] new_revision [ -dbn dbn ] -item_id item_id  \
    -revision_id revision_id  -title title  -description description  \
    -publish_date publish_date  -mime_type mime_type  \
    -nls_language nls_language  -creation_user creation_user  \
    -creation_ip creation_ip  -height height  -width width  \
    -package_id package_id 

Defined in packages/xotcl-core/tcl/05-db-procs.tcl

Automatically generated method

Switches:
-dbn
(optional)
-item_id
(required)
-revision_id
(required)
-title
(required)
-description
(required)
-publish_date
(required)
-mime_type
(required)
-nls_language
(required)
-creation_user
(required)
-creation_ip
(required)
-height
(required)
-width
(required)
-package_id
(required)

Partial Call Graph (max 5 caller/called nodes):
%3 db_with_handle db_with_handle (public) xo::db::sql::image proc new_revision xo::db::sql::image proc new_revision xo::db::sql::image proc new_revision->db_with_handle

Testcases:
No testcase defined.
Source code:
#function_args: {ITEM_ID {}} {REVISION_ID {}} {TITLE {}} {DESCRIPTION {}} {PUBLISH_DATE {}} {MIME_TYPE {}} {NLS_LANGUAGE {}} {CREATION_USER {}} {CREATION_IP {}} {HEIGHT {}} {WIDTH {}} {PACKAGE_ID {}}
foreach var [list ITEM_ID REVISION_ID TITLE DESCRIPTION PUBLISH_DATE MIME_TYPE NLS_LANGUAGE CREATION_USER CREATION_IP HEIGHT WIDTH PACKAGE_ID]  {
  set varname [string tolower $var]
  if {[info exists $varname]} {
    set $var [set $varname]
    set _$var :$var
  } else {
    set _$var null
  }
}
set sql "
select image__new_revision($_ITEM_ID$_REVISION_ID$_TITLE$_DESCRIPTION$_PUBLISH_DATE$_MIME_TYPE$_NLS_LANGUAGE$_CREATION_USER$_CREATION_IP$_HEIGHT$_WIDTH$_PACKAGE_ID) 
    "
db_with_handle -dbn $dbn db {
  #ns_log notice "--sql=$sql"
  return [ ns_set value [ns_pg_bind 0or1row $db $sql] 0 ]
}
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: