function Connection::version
Returns the version of the database server.
Assumes the client connection is \PDO. Non-PDO based drivers need to override this method.
Return value
string
1 method overrides Connection::version()
- Connection::version in core/
modules/ mysql/ src/ Driver/ Database/ mysql/ Connection.php - Returns the version of the database server.
File
-
core/
lib/ Drupal/ Core/ Database/ Connection.php, line 1843
Class
- Connection
- Base Database API class.
Namespace
Drupal\Core\DatabaseCode
public function version() {
return $this->connection
->getAttribute(\PDO::ATTR_SERVER_VERSION);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.