function Connection::clientVersion

Same name in this branch
  1. 11.x core/lib/Drupal/Core/Database/Connection.php \Drupal\Core\Database\Connection::clientVersion()
Same name and namespace in other branches
  1. 9 core/lib/Drupal/Core/Database/Connection.php \Drupal\Core\Database\Connection::clientVersion()
  2. 8.9.x core/lib/Drupal/Core/Database/Connection.php \Drupal\Core\Database\Connection::clientVersion()
  3. 10 core/lib/Drupal/Core/Database/Connection.php \Drupal\Core\Database\Connection::clientVersion()

Returns the version of the database client.

Assumes the client connection is \PDO. Non-PDO based drivers need to override this method.

Return value

string The version of the database client.

Overrides Connection::clientVersion

File

core/modules/mysqli/src/Driver/Database/mysqli/Connection.php, line 142

Class

Connection
MySQLi implementation of \Drupal\Core\Database\Connection.

Namespace

Drupal\mysqli\Driver\Database\mysqli

Code

public function clientVersion() {
  return \mysqli_get_client_info();
}

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