You are here

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

Same name and namespace in other branches
  1. 4.2.x src/Driver/Database/sqlsrv/Connection.php \Drupal\sqlsrv\Driver\Database\sqlsrv\Connection::sqlsrvConditionOperatorMap
  2. 3.1.x src/Driver/Database/sqlsrv/Connection.php \Drupal\sqlsrv\Driver\Database\sqlsrv\Connection::sqlsrvConditionOperatorMap
  3. 4.1.x src/Driver/Database/sqlsrv/Connection.php \Drupal\sqlsrv\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

src/Driver/Database/sqlsrv/Connection.php, line 892

Class

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

Namespace

Drupal\sqlsrv\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',
  ],
];