ad_page_contract_filter_proc_dbtext (public)

 ad_page_contract_filter_proc_dbtext name value_varname

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

Ensure that the value can be used in an SQL query. Note that this is not the same as quoting or otherwise ensuring the safety of the statement itself. What we enforce here is that the value will be accepted by the db interface without complaining. The actual definition may change or be database specific in the future.

Parameters:
name
value_varname

Partial Call Graph (max 5 caller/called nodes):
%3 test_ad_page_contract_filters ad_page_contract_filters (test acs-tcl) ad_page_contract_filter_proc_dbtext ad_page_contract_filter_proc_dbtext test_ad_page_contract_filters->ad_page_contract_filter_proc_dbtext _ _ (public) ad_page_contract_filter_proc_dbtext->_ ad_complain ad_complain (public) ad_page_contract_filter_proc_dbtext->ad_complain

Testcases:
ad_page_contract_filters
Source code:
upvar $value_varname value

    #
    # Reject the NUL character
    #
    if {[string first \u00 $value] != -1} {
        ad_complain [_ acs-tcl.lt_name_contains_invalid]
        return 0
    }

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