function 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.
1 method overrides Connection::clientVersion()
- Connection::clientVersion in core/
modules/ mysqli/ src/ Driver/ Database/ mysqli/ Connection.php - Returns the version of the database client.
File
-
core/
lib/ Drupal/ Core/ Database/ Connection.php, line 1212
Class
- Connection
- Base Database API class.
Namespace
Drupal\Core\DatabaseCode
public function clientVersion() {
return $this->connection
->getAttribute(\PDO::ATTR_CLIENT_VERSION);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.