wp_try_dml

one of the documented procedures in this installation of the ACS
Usage:
wp_try_dml   db   sql   { clobs "" }
What it does:
Tries to execute a DML statement, optionally with clobs. If it fails, ns_writes an error and returns 1.
Defined in: /web/philip/tcl/wp-defs.tcl

Source code:


    if { [catch { wp_clob_dml $db $sql $clobs } err] } {
	ad_return_error "Error" "The following error occurred while trying to write to the database:

<blockquote><pre>[philg_quote_double_quotes $err]</pre></blockquote>

Please <a href=\"javascript:history.back()\">back up and try again</a>."
        return 1
    }
    return 0


philg@mit.edu