contents   index   previous   next



Database rollbackTransaction()

syntax:

database.rollbackTransaction()

return:

number - 0 if the call was successful; otherwise, a nonzero status code based on the error message produced by the database. If the method returns a nonzero status code, use the majorErrorCode and majorErrorMessage methods to interpret the meaning of the error.

 

description:

This method undoes all actions performed since the last call to beginTransaction. If there is no current transaction (for instance, the application has not called beginTransaction), calls to rollbackTransaction are ignored.

 

see:

#link <sedbc>, Database beginTransaction(), Database commitTransaction()

 

example:

err = db.rollbackTransaction()

 


Database storedProc()