You are here

protected static property Connection::$sqlsrvConditionOperatorMap in Drupal driver for SQL Server and SQL Azure 3.0.x

Same name and namespace in other branches
  1. 8 drivers/lib/Drupal/Driver/Database/sqlsrv/Connection.php \Drupal\Driver\Database\sqlsrv\Connection::sqlsrvConditionOperatorMap

A map of condition operators to sqlsrv operators.

SQL Server doesn't need special escaping for the \ character in a string literal, because it uses '' to escape the single quote, not \'.

Type: array

File

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

Class

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

Namespace

Drupal\Driver\Database\sqlsrv

Code

protected static $sqlsrvConditionOperatorMap = [
  // These can be changed to 'LIKE' => ['postfix' => " ESCAPE '\\'"],
  // if https://bugs.php.net/bug.php?id=79276 is fixed.
  'LIKE' => [],
  'NOT LIKE' => [],
  'LIKE BINARY' => [
    'operator' => 'LIKE',
  ],
];