DB_common::rollback()

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

Synopsis

mixed rollback ()

Opis

Rolls back the current transaction.

Zwracana wartość

integer - DB_OK on success or a DB_Error object on failure

Wyjątki

Tabela 35-1. Możliwe wartości PEAR_Error

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.

Uwagi

Ta funkcja nie może być wywołana statycznie.

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

Przykład

Zobacz

commit(), autoCommit()