category_tree::exists_p (private)

 category_tree::exists_p tree_id

Defined in packages/categories/tcl/test/categories-procs.tcl

Checks if category tree exists directly in the DB.

Parameters:
tree_id (required)
Returns:
1 if exists, 0 if doesn't

Partial Call Graph (max 5 caller/called nodes):
%3 test_category_synonyms category_synonyms (test categories) category_tree::exists_p category_tree::exists_p test_category_synonyms->category_tree::exists_p test_category_tree_import category_tree_import (test categories) test_category_tree_import->category_tree::exists_p test_category_tree_procs category_tree_procs (test categories) test_category_tree_procs->category_tree::exists_p db_0or1row db_0or1row (public) category_tree::exists_p->db_0or1row

Testcases:
category_tree_import, category_synonyms, category_tree_procs
Source code:
    return [db_0or1row tree_exists {
        select 1 from category_trees where tree_id = :tree_id
    }]
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: