WireDatabaseDialect::savepointRollback()

Roll back to a savepoint, undoing what was done since it, and leave the transaction usable

Available since version 3.0.274.

Usage

$bool = $wireDatabaseDialect->savepointRollback(\PDO $pdo, string $name);

Arguments

NameType(s)Description
$pdo\PDO
$namestring

Savepoint name, or blank for none

Return value

bool

False if it could not be rolled back to (i.e. the database already rolled back the whole transaction, as MySQL does for a deadlock, or the connection was lost)


WireDatabaseDialect methods and properties

API reference based on ProcessWire core version 3.0.275