You are here

public function Connection::getFullQualifiedTableName in Drupal driver for SQL Server and SQL Azure 3.0.x

Same name and namespace in other branches
  1. 8.2 drivers/lib/Drupal/Driver/Database/sqlsrv/Connection.php \Drupal\Driver\Database\sqlsrv\Connection::getFullQualifiedTableName()

Including schema name.

Overrides Connection::getFullQualifiedTableName

File

drivers/lib/Drupal/Driver/Database/sqlsrv/Connection.php, line 380

Class

Connection
Sqlsvr implementation of \Drupal\Core\Database\Connection.

Namespace

Drupal\Driver\Database\sqlsrv

Code

public function getFullQualifiedTableName($table) {
  $options = $this
    ->getConnectionOptions();
  $prefix = $this
    ->tablePrefix($table);
  $schema_name = $this->schema
    ->getDefaultSchema();
  return $options['database'] . '.' . $schema_name . '.' . $prefix . $table;
}