function TransactionManagerBase::rollbackClientSavepoint
Rolls back to a savepoint on the client transaction.
This is a generic implementation. Drivers should override this method to use a method specific for their client connection.
Parameters
string $name: The name of the savepoint.
Return value
bool Returns TRUE on success or FALSE on failure.
3 calls to TransactionManagerBase::rollbackClientSavepoint()
- TransactionManager::rollbackClientSavepoint in core/
modules/ mysql/ src/ Driver/ Database/ mysql/ TransactionManager.php - Rolls back to a savepoint on the client transaction.
- TransactionManager::rollbackClientSavepoint in core/
modules/ mysql/ src/ Driver/ Database/ mysql/ TransactionManager.php - Rolls back to a savepoint on the client transaction.
- TransactionManagerBase::rollback in core/
lib/ Drupal/ Core/ Database/ Transaction/ TransactionManagerBase.php - Rolls back a Drupal transaction.
1 method overrides TransactionManagerBase::rollbackClientSavepoint()
- TransactionManager::rollbackClientSavepoint in core/
modules/ mysql/ src/ Driver/ Database/ mysql/ TransactionManager.php - Rolls back to a savepoint on the client transaction.
File
-
core/
lib/ Drupal/ Core/ Database/ Transaction/ TransactionManagerBase.php, line 515
Class
- TransactionManagerBase
- The database transaction manager base class.
Namespace
Drupal\Core\Database\TransactionCode
protected function rollbackClientSavepoint(string $name) : bool {
$this->connection
->query('ROLLBACK TO SAVEPOINT ' . $name);
return TRUE;
}