Skip to content

Commit

Permalink
Do not use dibi function escapeLike (BC break in dibi 4.1.2)
Browse files Browse the repository at this point in the history
  • Loading branch information
elring authored and paveljanda committed Jun 15, 2020
1 parent 2ebcdbf commit 852ed2d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/DataSource/DibiFluentPostgreDataSource.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@ protected function applyFilterText(FilterText $filter): void
$words = $filter->hasSplitWordsSearch() === false ? [$value] : explode(' ', $value);

foreach ($words as $word) {
$escaped = $driver->escapeLike($word, 0);
$or[] = "$column ILIKE $escaped";
$or[] = "$column ILIKE " . $driver->escapeText('%' . $word . '%');
}
}

Expand Down

0 comments on commit 852ed2d

Please sign in to comment.