_acs-tcl__nullchar (private)

 _acs-tcl__nullchar

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

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

Testcases:
No testcase defined.
Source code:
        
        set _aa_export {}
        set body_count 1
        foreach testcase_body {{
    set queries {}
    #
    # The NUL character is not allowed in plain data for PostgreSQL.
    #
    #set val1 \x00
    #set queries {
    #    variable {sql {select :val1} status 1}
    #}
    switch [db_type] {
       postgresql {
           lappend queries literal {sql {select '\x00'::bytea} status 0}
       }
    }
    foreach {type query} $queries {
        set status [catch { db_string noxql [dict get $query sql]} value copts]
        aa_equals [list $type {SQL executed successfully?}] $status [dict get $query status]
        aa_true [list $type {Value is the null character?} $value] {$value eq {\x00}}
    }
}} {
          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" "nullchar (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: