mysqli::rollback

mysqli_rollback

(PHP 5, PHP 7)

mysqli::rollback -- mysqli_rollbackRolls back current transaction

Descrição

Estilo orientado à objeto

public mysqli::rollback ([ int $flags = 0 [, string $name ]] ) : bool

Estilo procedural

mysqli_rollback ( mysqli $link [, int $flags = 0 [, string $name ]] ) : bool

Rollbacks the current transaction for the database.

Parâmetros

link

Somente no estilo procedural: Um recurso link retornado por mysqli_connect() ou mysqli_init()

flags

A bitmask of MYSQLI_TRANS_COR_* constants.

name

If provided then ROLLBACK/*name*/ is executed.

Valor Retornado

Retorna true em caso de sucesso ou false em caso de falha.

Notas

Nota:

This function does not work with non transactional table types (like MyISAM or ISAM).

Changelog

Versão Descrição
5.5.0 Added flags and name parameters.

Exemplos

See the mysqli::begin_transaction() example.

Veja Também