xo::db::sql::apm proc set_value (public)

 xo::db::sql::apm[i] set_value [ -dbn dbn ] -package_id package_id  \
    -parameter_name parameter_name  -attr_value attr_value 

Defined in /var/www/openacs.org/packages/xotcl-core/tcl/05-db-procs.tcl

Automatically generated method

Switches:
-dbn (optional)
-package_id (required)
-parameter_name (required)
-attr_value (required)

Testcases:
No testcase defined.
Source code:
#function_args: {PACKAGE_ID {}} {PARAMETER_NAME {}} {ATTR_VALUE {}}
foreach var [list PACKAGE_ID PARAMETER_NAME ATTR_VALUE]  {
  set varname [string tolower $var]
  if {[info exists $varname]} {
    set $var [set $varname]
    set _$var :$var
  } else {
    set _$var null
  }
}
set sql "
select apm__set_value($_PACKAGE_ID$_PARAMETER_NAME$_ATTR_VALUE) 
    "
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: