xo::db::sql::membership_rel proc check_index (public)
xo::db::sql::membership_rel check_index [ -dbn dbn ] \ -group_id group_id -member_id member_id \ -container_id container_id
Defined in /var/www/openacs.org/packages/xotcl-core/tcl/05-db-procs.tcl
Automatically generated method
- Switches:
- -dbn (optional)
- -group_id (required)
- -member_id (required)
- -container_id (required)
- Testcases:
- No testcase defined.
Source code: #function_args: {GROUP_ID {}} {MEMBER_ID {}} {CONTAINER_ID {}} foreach var [list GROUP_ID MEMBER_ID CONTAINER_ID] { set varname [string tolower $var] if {[info exists $varname]} { set $var [set $varname] set _$var :$var } else { set _$var null } } set sql " select membership_rel__check_index($_GROUP_ID, $_MEMBER_ID, $_CONTAINER_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