function TransactionManager::releaseClientSavepoint

Same name in this branch
  1. 11.x core/modules/mysql/src/Driver/Database/mysql/TransactionManager.php \Drupal\mysql\Driver\Database\mysql\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()

Releases 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.

Overrides TransactionManagerBase::releaseClientSavepoint

File

core/modules/mysqli/src/Driver/Database/mysqli/TransactionManager.php, line 51

Class

TransactionManager
MySqli implementation of TransactionManagerInterface.

Namespace

Drupal\mysqli\Driver\Database\mysqli

Code

protected function releaseClientSavepoint(string $name) : bool {
  return $this->connection
    ->getClientConnection()
    ->release_savepoint($name);
}

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