1 database.inc public DatabaseConnection::version()

Returns the version of the database server.

Return value

string:

File

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

Class

DatabaseConnection
Base Database API class.

Code

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