db_1row (public)
db_1row [ -subst subst ] [ args... ]
Defined in packages/acs-tcl/tcl/01-database-procs.tcl
A wrapper for db_0or1row, which produces an error if no rows are returned.
- Switches:
- -subst (optional, defaults to
"all"
)- Returns:
- 1 if variables are set, otherwise an exception is thrown.
- See Also:
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- test_apm_parameter__register, test_apm_package_instance__new, apm_version_names_compare, apm__test_info_file, site_node_get_children, acs_user__registered_user_p, acs_user__ban_approve, parameter_register_test, parameter__check_procs, community_cc_procs, person_procs_test, party_procs_test, db__1row, util_http_json_encoding, ad_context_bar_multirow, acs_object_procs_test, ad_proc_permission_permission_p
Source code: if { ![uplevel ::db_0or1row -subst $subst $args] } { return -code error "Query did not return any rows." }XQL Not present: Generic, PostgreSQL, Oracle