Skip to content

Commit

Permalink
FilterProcessor: Assemble HasValue & HasNotValue filter rules pre…
Browse files Browse the repository at this point in the history
…dicate
  • Loading branch information
yhabteab committed Nov 15, 2021
1 parent a28c024 commit b05fa4c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Compat/FilterProcessor.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,10 @@ public static function assemblePredicate(Filter\Condition $filter)
}
} elseif ($filter instanceof Filter\Unequal) {
return ["($column != ? OR $column IS NULL)" => $expression];
} elseif ($filter instanceof Filter\HasNotValue) {
return ["$column IS NULL"];
} elseif ($filter instanceof Filter\HasValue) {
return ["$column IS NOT NULL"];
} else {
if ($filter instanceof Filter\Equal) {
$operator = '=';
Expand Down

0 comments on commit b05fa4c

Please sign in to comment.