Skip to content

Commit

Permalink
Merge pull request #793 from mikey-harveycameron/patch-1
Browse files Browse the repository at this point in the history
skip empty 'where' clauses
  • Loading branch information
tractorcow committed Apr 13, 2023
2 parents 91b834f + 69a9df5 commit c7a22a0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Extension/FluentExtension.php
Expand Up @@ -581,7 +581,11 @@ public function augmentSQL(SQLSelect $query, DataQuery $dataQuery = null)

// Apply substitutions
$localisedPredicate = str_replace($conditionSearch, $conditionReplace, $predicate);


if (empty($localisedPredicate)) {
continue;
}

$where[$index] = [
$localisedPredicate => $parameters
];
Expand Down

0 comments on commit c7a22a0

Please sign in to comment.