function DatabaseConnection::version

Returns the version of the database server.

File

includes/database/database.inc, line 1301

Class

DatabaseConnection
Base Database API class.

Code

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.