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
| Name | Type(s) | Description |
|---|---|---|
$pdo | \PDO | |
$name | string | Savepoint name, or blank for none |
Return value
boolFalse 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