SAMConnection::rollback

(PECL sam >= 0.1.0)
Cancels (rolls back) an in-flight unit of work.
bool SAMConnection::rollback ( void )

Rolls back an in-flight unit of work.

Returns:

This method returns FALSE if an error occurs.

Examples:
Cancelling an in-flight unit of work
<?php
if (!$conn->rollback()) {
  // The rollback failed!
  echo "Rollback failed ($conn->errno) $conn->error";
}
?>

See also:

SAMConnection::commit -

doc_php
2016-02-24 16:09:52
Comments
Leave a Comment

Please login to continue.