|
DatabaseTransactionRollback
Rolls back transactions.
bool DatabaseTransactionRollback(
|
Parameters
database
[in] Database handle received in DatabaseOpen().
Return true if successful, otherwise false. To get the error code, use GetLastError(), the possible responses are:
Note
DatabaseTransactionRollback() call cancels all transactions executed after calling the DatabaseTransactionBegin() function. The DatabaseTransactionRollback() function is necessary for rolling back changes in a database in case errors occur when executing a transaction.
See also
DatabaseExecute, DatabasePrepare, DatabaseTransactionBegin, DatabaseTransactionCommit