function TransactionManager::releaseClientSavepoint

Same name and namespace in other branches
  1. 10 core/modules/mysql/src/Driver/Database/mysql/TransactionManager.php \Drupal\mysql\Driver\Database\mysql\TransactionManager::releaseClientSavepoint()

Overrides TransactionManagerBase::releaseClientSavepoint

File

core/modules/mysql/src/Driver/Database/mysql/TransactionManager.php, line 52

Class

TransactionManager
MySql implementation of TransactionManagerInterface.

Namespace

Drupal\mysql\Driver\Database\mysql

Code

protected function releaseClientSavepoint(string $name) : bool {
    if (!$this->connection
        ->getClientConnection()
        ->inTransaction()) {
        $this->voidClientTransaction();
        return TRUE;
    }
    return parent::releaseClientSavepoint($name);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.