DBrollback
Synopsis
DBrollback aborts the changes in the current transaction.
Input Ports
dbvisual_connect_descriptor ptr to a structure
Parameters
connect_information DBconnectInformation group
db_specific_error_message string
Output Ports
Description
DBrollback aborts the changes in the current transaction by executing an SQL ROLLBACK statement. ( The current transaction include s all command s executed on the current connection.) After rolling back the changes, DBrollback terminates the transaction.
Input
A pointer to the connection descriptor of the session in which DBquery is to execute. This is the output of the DBconnect module that initiated the session.
A trigger that initiates execution of the ROLLBACK statement. When this value changes to a value greater than 0, the rollback is executed.
Parameters
An error message returned by the database server when an error occurs during its processing of the rollback. For more information, see your database documentation.
An error code associated with the error message returned by the database server when an error occurs during its processing of the rollback. A value of 0 indicates success; a nonzero value indicates failure. For more information, see your database documentation.
A return value that indicates the processing status of the rollback. This value is set to 1 while the rollback is being processed and is cleared to 0 to indicate that the rollback has completed.
The status code associated with the message returned in the message parameter. A value of 0 indicates success; a nonzero value indicates failure.
Output Port
Example
File
See also related modules