Utility functions / List of utility functions |
Terminates a transaction level.
DB_FINISH_TRANSACTION( commit INTEGER ) RETURNING result INTEGER
This function encapsulates the COMMIT WORK or ROLLBACK WORK instructions to end a transaction.
When the number of calls to DB_START_TRANSACTION() matches, this function executes a COMMIT WORK if the passed parameter is TRUE; if the passed parameter is FALSE, it executes a ROLLBACK WORK.
If the number of calls does not match, the function does nothing.