Skip to content

Commit 852ed2d

Browse files
elringpaveljanda
authored andcommitted
Do not use dibi function escapeLike (BC break in dibi 4.1.2)
1 parent 2ebcdbf commit 852ed2d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/DataSource/DibiFluentPostgreDataSource.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,7 @@ protected function applyFilterText(FilterText $filter): void
2828
$words = $filter->hasSplitWordsSearch() === false ? [$value] : explode(' ', $value);
2929

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

0 commit comments

Comments
 (0)