db_qd_relative_path_p (private)

 db_qd_relative_path_p path

Defined in packages/acs-bootstrap-installer/tcl/40-db-query-dispatcher-procs.tcl

Check if the path is relative

Parameters:
path (required)

Partial Call Graph (max 5 caller/called nodes):
%3 db_qd_get_fullname db_qd_get_fullname (public) db_qd_relative_path_p db_qd_relative_path_p db_qd_get_fullname->db_qd_relative_path_p db_qd_internal_load_queries db_qd_internal_load_queries (private) db_qd_internal_load_queries->db_qd_relative_path_p db_qd_root_path db_qd_root_path (private) db_qd_relative_path_p->db_qd_root_path

Testcases:
No testcase defined.
Source code:
    set root_path [db_qd_root_path]
    set root_path_length [string length $root_path]

    # Check if the path starts with the root
    if {[string range $path 0 $root_path_length-1] eq $root_path} {
        return 0
    } else {
        return 1
    }
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: