You are here

public function Schema::engineVersionNumber in Drupal driver for SQL Server and SQL Azure 8

Same name and namespace in other branches
  1. 3.0.x drivers/lib/Drupal/Driver/Database/sqlsrv/Schema.php \Drupal\Driver\Database\sqlsrv\Schema::engineVersionNumber()

Retrieve Major Engine Version Number as integer.

File

drivers/lib/Drupal/Driver/Database/sqlsrv/Schema.php, line 441
Definition of Drupal\Driver\Database\sqlsrv\Schema

Class

Schema

Namespace

Drupal\Driver\Database\sqlsrv

Code

public function engineVersionNumber() {
  $version = $this
    ->engineVersion();
  $start = strpos($version['VERSION'], '.');
  return intval(substr($version['VERSION'], 0, $start));
}