You are here

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

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

Return active default Schema.

File

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

Class

Schema

Namespace

Drupal\Driver\Database\sqlsrv

Code

public function GetDefaultSchema() {
  $result = $this->connection
    ->query_direct("SELECT SCHEMA_NAME()")
    ->fetchField();
  $this->defaultSchema = $result;
  return $this->defaultSchema;
}