xo::db::sql::time_interval proc overlaps_p (public)

 xo::db::sql::time_interval[i] overlaps_p [ -dbn dbn ] -start_1 start_1  \
    -end_1 end_1  -start_2 start_2  -end_2 end_2 

Defined in /var/www/openacs.org/packages/xotcl-core/tcl/05-db-procs.tcl

Automatically generated method

Switches:
-dbn (optional)
-start_1 (required)
-end_1 (required)
-start_2 (required)
-end_2 (required)

Testcases:
No testcase defined.
Source code:
#function_args: {START_1 {}} {END_1 {}} {START_2 {}} {END_2 {}}
foreach var [list START_1 END_1 START_2 END_2]  {
  set varname [string tolower $var]
  if {[info exists $varname]} {
    set $var [set $varname]
    set _$var :$var
  } else {
    set _$var null
  }
}
set sql "
select time_interval__overlaps_p($_START_1$_END_1$_START_2$_END_2) 
    "
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
[ hide source ] | [ make this the default ]
Show another procedure: