util_remove_nulls_from_ns_set (public)

 util_remove_nulls_from_ns_set old_set_id

Defined in packages/acs-tcl/tcl/utilities-procs.tcl

Creates and returns a new ns_set without any null value fields

Parameters:
old_set_id (required)
Returns:
new ns_set

Partial Call Graph (max 5 caller/called nodes):
%3

Testcases:
No testcase defined.
Source code:
    set new_set_id [ns_set create "no_nulls$old_set_id"]

    foreach {key value} [ns_set array $old_set_id] {
        if { $value ne "" } {
            ns_set put $new_set_id $key $value
        }
    }

    return $new_set_id
XQL Not present:
PostgreSQL, Oracle
Generic XQL file:
packages/acs-tcl/tcl/utilities-procs.xql

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