Using isc_rollback_retaining()

From InterBase

Go Up to Ending Transactions


Use isc_rollback_retaining() to restore the database to its condition prior to the start of the transaction. isc_rollback_retaining() does not close the record streams associated with the transaction, reset the transaction name, or free system resources assigned to the transaction. isc_rollback_retaining() should be used with caution because the error that caused the rollback may be in the transaction’s context. In that case, the error will continue until the context is released. The syntax for isc_rollback_retaining() is:

ISC_STATUS isc_rollback_retaining( ISC_STATUS *status vector,
isc_tr_handle *trans_handle);

For example, the following call rolls back a transaction, but keeps its context:

isc_rollback_retaining(status_vector, &trans);

where status vector is a pointer to a previously declared error status vector, and trans is a pointer to a previously declared and initialized transaction handle.

See Isc rollback retaining() for its complete syntax.

Advance To: