_acs-templating__sql_date (private)
_acs-templating__sql_date
Defined in packages/acs-templating/tcl/test/date-procs.tcl
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.
Source code: set _aa_export {} set body_count 1 foreach testcase_body {{ aa_run_with_teardown -test_code { set date [template::util::date::now] set sql_date [template::util::date::get_property sql_date $date] if { [db_type] eq "oracle" && [string match "8.*" [db_version]] } { aa_true "to_date for Oracle 8i" [string match "to_date*"] } else { aa_true "to_timestamp for Oracle 9i and PostgreSQL" [string match "to_timestamp*" $sql_date] } } }} { 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" "sql_date (body $body_count): Error during execution: $msg, stack trace: \n$::errorInfo" } incr body_count }XQL Not present: Generic, PostgreSQL, Oracle