DB_common::rollback()

DB_common::rollback() -- Rolls back the current transaction

Áttekintés

mixed rollback ()

Leírás

Rolls back the current transaction.

Visszatérési érték

integer - DB_OK on success or a DB_Error object on failure

Lehetséges hibaértékek

Táblázat 35-1. Lehetséges PEAR_Error visszatérési értékek

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.

Megjegyzés

Ez a függvény nem hívható statikusan.

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

Példa

Lásd

commit(), autoCommit()