You are here

public function Connection::getFullQualifiedTableName in Drupal driver for SQL Server and SQL Azure 8.2

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

Get a fully qualified table name.

Parameters

string $table: The name of the table in question.

Return value

string

Overrides Connection::getFullQualifiedTableName

File

drivers/lib/Drupal/Driver/Database/sqlsrv/Connection.php, line 1061
Definition of Drupal\Driver\Database\sqlsrv\Connection

Class

Connection
Temporary tables: temporary table support is done by means of global temporary tables (#) to avoid the use of DIRECT QUERIES. You can enable and disable the use of direct queries with $this->driver_settings->defaultDirectQuery =…

Namespace

Drupal\Driver\Database\sqlsrv

Code

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