acs::SiteNode method has_children (protected)

 <instance of acs::SiteNode[i]> has_children -node_id node_id 

Defined in

Check, if the provided site-node has children.

Switches:
-node_id (required, integer)
Returns:
boolean value. ns_log notice "non-cached version of has_children called with $node_id"

Testcases:
No testcase defined.
Source code:
set children [::acs::dc list -prepare integer dbqd..has_children {
    select 1 from site_nodes where parent_id = :node_id
    FETCH NEXT 1 ROWS ONLY
}]
return [llength $children]
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: