xo::db::sql::rss_gen_subscr proc new (public)
xo::db::sql::rss_gen_subscr new [ -dbn dbn ] -p_subscr_id p_subscr_id \ -p_impl_id p_impl_id -p_summary_context_id p_summary_context_id \ -p_timeout p_timeout [ -p_lastbuild p_lastbuild ] \ -p_object_type p_object_type [ -p_creation_date p_creation_date ] \ -p_creation_user p_creation_user -p_creation_ip p_creation_ip \ -p_context_id p_context_id [ -childof childof ]
Defined in /var/www/openacs.org/packages/xotcl-core/tcl/05-db-procs.tcl
Automatically generated method
- Switches:
- -dbn (optional)
- -p_subscr_id (required)
- -p_impl_id (required)
- -p_summary_context_id (required)
- -p_timeout (required)
- -p_lastbuild (optional, defaults to
"now"
)- -p_object_type (required)
- -p_creation_date (optional, defaults to
"now"
)- -p_creation_user (required)
- -p_creation_ip (required)
- -p_context_id (required)
- -childof (optional)
- Testcases:
- No testcase defined.
Source code: #function_args: {P_SUBSCR_ID {}} {P_IMPL_ID {}} {P_SUMMARY_CONTEXT_ID {}} {P_TIMEOUT {}} {P_LASTBUILD now} {P_OBJECT_TYPE {}} {P_CREATION_DATE now} {P_CREATION_USER {}} {P_CREATION_IP {}} {P_CONTEXT_ID {}} foreach var [list P_SUBSCR_ID P_IMPL_ID P_SUMMARY_CONTEXT_ID P_TIMEOUT P_LASTBUILD P_OBJECT_TYPE P_CREATION_DATE P_CREATION_USER P_CREATION_IP P_CONTEXT_ID] { set varname [string tolower $var] if {[info exists $varname]} { set $var [set $varname] set _$var :$var } else { set _$var null } } set sql " select rss_gen_subscr__new($_P_SUBSCR_ID, $_P_IMPL_ID, $_P_SUMMARY_CONTEXT_ID, $_P_TIMEOUT, $_P_LASTBUILD, $_P_OBJECT_TYPE, $_P_CREATION_DATE, $_P_CREATION_USER, $_P_CREATION_IP, $_P_CONTEXT_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