7.x database.inc DatabaseConnection::version()

Returns the version of the database server.

File

includes/database/database.inc, line 1254
Core systems for the database layer.

Class

DatabaseConnection
Base Database API class.

Code

public function version() {
  return $this
    ->getAttribute(PDO::ATTR_SERVER_VERSION);
}