db_abort_transaction (public)

 db_abort_transaction [ -dbn dbn ]

Defined in packages/acs-tcl/tcl/01-database-procs.tcl

Aborts all levels of a transaction. That is if this is called within several nested transactions, all of them are terminated. Use this instead of db_dml "abort" "abort transaction".

The database name to use. If empty_string, uses the default database.

Partial Call Graph (max 5 caller/called nodes):
%3 test_db__transaction db__transaction (test acs-tcl) db_abort_transaction db_abort_transaction test_db__transaction->db_abort_transaction db_state_array_name_is db_state_array_name_is (private) db_abort_transaction->db_state_array_name_is db_with_handle db_with_handle (public) db_abort_transaction->db_with_handle db_transaction db_transaction (public) db_transaction->db_abort_transaction forum::message::new forum::message::new (public) forum::message::new->db_abort_transaction packages/acs-subsite/www/admin/rel-segments/constraints/new.tcl packages/acs-subsite/ www/admin/rel-segments/constraints/new.tcl packages/acs-subsite/www/admin/rel-segments/constraints/new.tcl->db_abort_transaction

Source code:
    upvar "#0" [db_state_array_name_is -dbn $dbn] db_state

    db_with_handle -dbn $dbn db {
        # We set the abort flag to true.
        set db_state(db_abort_p,$db) 1
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: