template::list::element_where_clauses (public)

 template::list::element_where_clauses -name name [ -and ]

Defined in packages/acs-templating/tcl/list-procs.tcl

Switches:
-name (required)
-and (optional, boolean)
Set this flag if you want the result to start with an 'and' if the list of where clauses returned is nonempty.

Testcases:
No testcase defined.
Source code:
    # Get an upvar'd reference to list_properties
    get_reference -name $name

    if { [llength $list_properties(element_where_clauses)] == 0 } {
        return {}
    }

    set result {}
    if { $and_p } {
        append result "and "
    }
    append result [join $list_properties(element_where_clauses) "\n and "]

    return $result
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: