src/Darya/Database/Query/AbstractSqlTranslator.php 1 location
|
@@ 200-208 (lines=9) @@
|
| 197 |
|
protected function prepareOperator($operator, $value) { |
| 198 |
|
$operator = in_array(strtolower($operator), $this->operators) ? strtoupper($operator) : '='; |
| 199 |
|
|
| 200 |
|
if (!$this->resolvesPlaceholder($value)) { |
| 201 |
|
if ($operator === '=') { |
| 202 |
|
$operator = 'IS'; |
| 203 |
|
} |
| 204 |
|
|
| 205 |
|
if ($operator === '!=') { |
| 206 |
|
$operator = 'IS NOT'; |
| 207 |
|
} |
| 208 |
|
} |
| 209 |
|
|
| 210 |
|
if (is_array($value)) { |
| 211 |
|
if ($operator === '=') { |
src/Darya/Storage/Filterer.php 1 location
|
@@ 67-75 (lines=9) @@
|
| 64 |
|
|
| 65 |
|
$operator = in_array(strtolower($operator), static::$operators) ? $operator : '='; |
| 66 |
|
|
| 67 |
|
if ($value === null) { |
| 68 |
|
if ($operator === '=') { |
| 69 |
|
$operator = 'is'; |
| 70 |
|
} |
| 71 |
|
|
| 72 |
|
if ($operator === '!=') { |
| 73 |
|
$operator = 'is not'; |
| 74 |
|
} |
| 75 |
|
} |
| 76 |
|
|
| 77 |
|
if (is_array($value)) { |
| 78 |
|
if ($operator === '=') { |