Syntax
ROLLBACK [WORK] [TRANSACTION tr_name] [RETAIN [SNAPSHOT] | TO [SAVEPOINT] sp_name | RELEASE]
Available in: DSQL
Added in: 2.0
Description
Undoes all the database changes carried out in the transaction without closing it. User variables set with RDB$SET_CONTEXT() remain unchanged.
Syntax
ROLLBACK [WORK] RETAIN [SNAPSHOT]
Note
The functionality provided by ROLLBACK RETAIN has been present since InterBase 6, but the only way to access it was through the API call isc_rollback_retaining().
Available in: DSQL
Added in: 1.5
Description
Undoes everything that happened in a transaction since the creation of the savepoint.
Syntax
ROLLBACK [WORK] TO [SAVEPOINT] name
ROLLBACK TO SAVEPOINT performs the following operations:
For a full discussion of savepoints, see SAVEPOINT.