xo::db::sql::composition_rel proc check_path_exists_p (public)
xo::db::sql::composition_rel check_path_exists_p [ -dbn dbn ] \ -component_id component_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)
- -component_id (required)
- -container_id (required)
- Testcases:
- No testcase defined.
Source code: #function_args: {COMPONENT_ID {}} {CONTAINER_ID {}} foreach var [list COMPONENT_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 composition_rel__check_path_exists_p($_COMPONENT_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