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 (required)
Returns:
1 if exists, 0 if doesn't

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: