category::exists_p (private)

 category::exists_p category_id

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

Checks if category exists directly in the DB.

Parameters:
category_id
Returns:
1 if exists, 0 if doesn't

Partial Call Graph (max 5 caller/called nodes):
%3 test_category_crud category_crud (test categories) category::exists_p category::exists_p test_category_crud->category::exists_p test_category_synonyms category_synonyms (test categories) test_category_synonyms->category::exists_p db_0or1row db_0or1row (public) category::exists_p->db_0or1row

Testcases:
category_synonyms, category_crud
Source code:
    return [db_0or1row category_exists {
        select 1 from categories where category_id = :category_id
    }]
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: