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
1
2
3
4
5
6
<?php
if (!$conn->rollback()) {
  // The rollback failed!
  echo "Rollback failed ($conn->errno) $conn->error";
}
?>
See also:

SAMConnection::commit -

doc_php
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.