_acs-tcl__db__string (private)

 _acs-tcl__db__string

Defined in packages/acs-tcl/tcl/test/db-proc-test-procs.tcl

Partial Call Graph (max 5 caller/called nodes):
%3 aa_log aa_log (public) aa_log_result aa_log_result (public) aa_true aa_true (public) db_string db_string (public) _acs-tcl__db__string _acs-tcl__db__string _acs-tcl__db__string->aa_log _acs-tcl__db__string->aa_log_result _acs-tcl__db__string->aa_true _acs-tcl__db__string->db_string

Testcases:
No testcase defined.
Source code:
        
        set _aa_export {}
        set body_count 1
        foreach testcase_body {{
        set r [db_string x {select object_id from acs_objects where object_id = -1}]
        aa_true "constant query" {$r == -1}

        set x -1
        set r [db_string x {select object_id from acs_objects where object_id = :x}]
        aa_true "query with bind variable from environment" {$r == -1}

        set r [db_string x {select object_id from acs_objects where object_id = :a} -bind {a -1}]
        aa_true "query with provided bind variable from var list" {$r == -1}

        set s [ns_set create binds b -1]
        set r [db_string x {select object_id from acs_objects where object_id = :b} -bind $s]
        aa_true "query with provided bind variable from ns_set" {$r == -1}

        set r [db_string x {select object_id from acs_objects where object_id = -4711} -default -1]
        aa_true "failing query with default" {$r == -1}
    }} {
          aa_log "Running testcase body $body_count"
          set ::__aa_test_indent [info level]
          set catch_val [catch $testcase_body msg]
          if {$catch_val != 0 && $catch_val != 2} {
              aa_log_result "fail" "db__string (body $body_count): Error during execution: $msg, stack trace: \n$::errorInfo"
          }
          incr body_count
        }
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: