public function Connection::escapeField in Drupal driver for SQL Server and SQL Azure 3.0.x
Same name and namespace in other branches
- 8.2 drivers/lib/Drupal/Driver/Database/sqlsrv/Connection.php \Drupal\Driver\Database\sqlsrv\Connection::escapeField()
- 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\sqlsrvCode
public function escapeField($field) {
$field = parent::escapeField($field);
return $this
->quoteIdentifier($field);
}