Skip to content

Commit

Permalink
fix regexp too
Browse files Browse the repository at this point in the history
  • Loading branch information
mvorisek committed Jul 3, 2022
1 parent 8f937b0 commit 42757c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Persistence/Sql/Postgresql/Query.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ protected function _sub_render_condition(array $row): string
{
if (count($row) >= 3) {
[$field, $cond, $value] = $row;
if (in_array(strtolower($cond), ['like', 'not like'], true)) {
if (in_array(strtolower($cond), ['like', 'not like', 'regexp', 'not regexp'], true)) {
$field = $this->expr('CAST([] AS citext)', [$field]);
$row = [$field, $cond, $value];
}
Expand Down

0 comments on commit 42757c6

Please sign in to comment.