You are here

public function Connection::escapeField 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::escapeField()
  2. 8 drivers/lib/Drupal/Driver/Database/sqlsrv/Connection.php \Drupal\Driver\Database\sqlsrv\Connection::escapeField()

Encapsulates field names in brackets when necessary.

Overrides Connection::escapeField

File

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

Class

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

Namespace

Drupal\Driver\Database\sqlsrv

Code

public function escapeField($field) {
  $field = parent::escapeField($field);
  return $this
    ->quoteIdentifier($field);
}