category::get_parent (public)

 category::get_parent -category_id category_id

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

Returns the category id of the parent category

Switches:
-category_id (required)
category_id
Returns:
category id of the parent category
Author:
Peter Kreuzinger <peter.kreuzinger@wu-wien.ac.at>

Partial Call Graph (max 5 caller/called nodes):
%3 test_category_get_procs category_get_procs (test categories) category::get_parent category::get_parent test_category_get_procs->category::get_parent db_string db_string (public) category::get_parent->db_string

Testcases:
category_get_procs
Source code:
    return [db_string get_parent {
        select parent_id
        from categories
        where category_id = :category_id
    } -default 0]
XQL Not present:
Generic
PostgreSQL XQL file:
packages/categories/tcl/categories-procs-postgresql.xql

Oracle XQL file:
packages/categories/tcl/categories-procs-oracle.xql

[ hide source ] | [ make this the default ]
Show another procedure: