You are here

public function Scheme::EngineVersionNumber in Drupal driver for SQL Server and SQL Azure 8.2

Retrieve Major engine version number as integer.

Return value

int

File

drivers/lib/Drupal/Driver/Database/sqlsrv/Scheme.php, line 611

Class

Scheme

Namespace

Drupal\Driver\Database\sqlsrv

Code

public function EngineVersionNumber() {
  $version = $this
    ->EngineVersion()
    ->Version();
  $parts = explode('.', $version);
  return (int) reset($parts);
}