DB_common::commit()

DB_common::commit() -- Commits the current transaction

Synopsis

mixed commit ()

Beschreibung

Commits the current transaction.

Rückgabewert

integer - DB_OK on success or a DB_Error object on failure

Fehler-Meldungen

Tabelle 34-1. Mögliche Fehler-Arten

Error codeError messageReasonSolution
every other error code  Database specific error Check the database related section of PHP-Manual to detect the reason for this error.

Hinweise

Diese Methode kann nicht statisch aufgerufen werden.

When using MySQL as your DBMS, transactions can only be used when the tables in question use the InnoDB format.

Beispiel

Siehe auch

rollback(), autoCommit()