xo::db::sql::rel_constraint proc get_constraint_id (public)
xo::db::sql::rel_constraint get_constraint_id [ -dbn dbn ] \ -rel_segment rel_segment -rel_side rel_side \ -required_rel_segment required_rel_segment
Defined in /var/www/openacs.org/packages/xotcl-core/tcl/05-db-procs.tcl
Automatically generated method
- Switches:
- -dbn (optional)
- -rel_segment (required)
- -rel_side (required)
- -required_rel_segment (required)
- Testcases:
- No testcase defined.
Source code: #function_args: {REL_SEGMENT {}} {REL_SIDE {}} {REQUIRED_REL_SEGMENT {}} foreach var [list REL_SEGMENT REL_SIDE REQUIRED_REL_SEGMENT] { set varname [string tolower $var] if {[info exists $varname]} { set $var [set $varname] set _$var :$var } else { set _$var null } } set sql " select rel_constraint__get_constraint_id($_REL_SEGMENT, $_REL_SIDE, $_REQUIRED_REL_SEGMENT) " 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