xo::db::sql::apm_parameter_value proc new (public)
xo::db::sql::apm_parameter_value new [ -dbn dbn ] \ [ -value_id value_id ] -package_id package_id \ -parameter_id parameter_id -attr_value attr_value \ [ -childof childof ]
Defined in /var/www/openacs.org/packages/xotcl-core/tcl/05-db-procs.tcl
Automatically generated method
- Switches:
- -dbn (optional)
- -value_id (optional)
- -package_id (required)
- -parameter_id (required)
- -attr_value (required)
- -childof (optional)
- Testcases:
- No testcase defined.
Source code: #function_args: {VALUE_ID null} {PACKAGE_ID {}} {PARAMETER_ID {}} {ATTR_VALUE {}} foreach var [list VALUE_ID PACKAGE_ID PARAMETER_ID 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_parameter_value__new($_VALUE_ID, $_PACKAGE_ID, $_PARAMETER_ID, $_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