acs::db::nsdb-postgresql method call tree_ancestor_key (public)

 <instance of acs::db::nsdb-postgresql[i]> call tree_ancestor_key \
    [ -dbn dbn ] -tree_key tree_key  -level level 

Defined in packages/acs-tcl/tcl/00-acs-tcl-init.tcl

Automatically generated method TYPES: {bit varying} integer

Switches:
-dbn (optional)
-tree_key (required)
-level (required)

Testcases:
No testcase defined.
Source code:
db_with_handle -dbn $dbn __DB {
   set s [ns_pg_bind 0or1row $__DB {select tree_ancestor_key(:tree_key,CAST(:level AS integer))}]
   return [ns_set value $s 0]
}
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: