xo::db::sql::bt_patch proc new (public)

 xo::db::sql::bt_patch[i] new [ -dbn dbn ] -patch_id patch_id  \
    -project_id project_id  -component_id component_id  \
    -summary summary  -description description  \
    -description_format description_format  -content content  \
    -generated_from_version generated_from_version  \
    -creation_user creation_user  -creation_ip creation_ip  \
    [ -childof childof ]

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

Automatically generated method

Switches:
-dbn
(optional)
-patch_id
(required)
-project_id
(required)
-component_id
(required)
-summary
(required)
-description
(required)
-description_format
(required)
-content
(required)
-generated_from_version
(required)
-creation_user
(required)
-creation_ip
(required)
-childof
(optional)

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

Testcases:
No testcase defined.
Source code:
#function_args: {PATCH_ID {}} {PROJECT_ID {}} {COMPONENT_ID {}} {SUMMARY {}} {DESCRIPTION {}} {DESCRIPTION_FORMAT {}} {CONTENT {}} {GENERATED_FROM_VERSION {}} {CREATION_USER {}} {CREATION_IP {}}
foreach var [list PATCH_ID PROJECT_ID COMPONENT_ID SUMMARY DESCRIPTION DESCRIPTION_FORMAT CONTENT GENERATED_FROM_VERSION CREATION_USER CREATION_IP]  {
  set varname [string tolower $var]
  if {[info exists $varname]} {
    set $var [set $varname]
    set _$var :$var
  } else {
    set _$var null
  }
}
set sql "
select bt_patch__new($_PATCH_ID$_PROJECT_ID$_COMPONENT_ID$_SUMMARY$_DESCRIPTION$_DESCRIPTION_FORMAT$_CONTENT$_GENERATED_FROM_VERSION$_CREATION_USER$_CREATION_IP) 
    "
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: