PHP Doku:: Commits (completes) the current unit of work. - function.samconnection-commit.html

Verlauf / Chronik / History: (1) anzeigen

Sie sind hier:
Doku-StartseitePHP-HandbuchFunktionsreferenzSonstige DiensteSimple Asynchronous MessagingSAM FunktionenSAMConnection->commit

Ein Service von Reinhard Neidl - Webprogrammierung.

SAM Funktionen

<<SAM Funktionen

SAMConnection->connect>>

SAMConnection->commit

(PECL sam >= 0.1.0)

SAMConnection->commit Commits (completes) the current unit of work.

Beschreibung

bool SAMConnection::commit ( void )

Calling the "commit" method on a Connection object commits (completes) all in-flight transactions that are part of the current unit of work.

Rückgabewerte

This method returns FALSE if an error occurs.

Beispiele

Beispiel #1 Committing the current unit of work

<?php
  
if (!$conn->commit()) {
    
// The commit failed!
    
echo "Commit failed ($conn->errno$conn->error";
  }
?>


Keine BenutzerBeiträge.
- Beiträge aktualisieren...



PHP Powered Diese Seite bei php.net
The PHP manual text and comments are covered by the Creative Commons Attribution 3.0 License © the PHP Documentation Group - Impressum - mail("TO:Reinhard Neidl",...)