src/Darya/Database/Query/AbstractSqlTranslator.php 1 location
|
@@ 417-425 (lines=9) @@
|
| 414 |
|
{ |
| 415 |
|
$operator = $this->prepareRawOperator($operator); |
| 416 |
|
|
| 417 |
|
if (!$this->resolvesPlaceholder($value)) { |
| 418 |
|
if ($operator === '=') { |
| 419 |
|
$operator = 'IS'; |
| 420 |
|
} |
| 421 |
|
|
| 422 |
|
if ($operator === '!=') { |
| 423 |
|
$operator = 'IS NOT'; |
| 424 |
|
} |
| 425 |
|
} |
| 426 |
|
|
| 427 |
|
if (is_array($value)) { |
| 428 |
|
if ($operator === '=') { |
src/Darya/Storage/Filterer.php 1 location
|
@@ 70-78 (lines=9) @@
|
| 67 |
|
|
| 68 |
|
$operator = in_array(strtolower($operator), static::$operators) ? $operator : '='; |
| 69 |
|
|
| 70 |
|
if ($value === null) { |
| 71 |
|
if ($operator === '=') { |
| 72 |
|
$operator = 'is'; |
| 73 |
|
} |
| 74 |
|
|
| 75 |
|
if ($operator === '!=') { |
| 76 |
|
$operator = 'is not'; |
| 77 |
|
} |
| 78 |
|
} |
| 79 |
|
|
| 80 |
|
if (is_array($value)) { |
| 81 |
|
if ($operator === '=') { |