mirror of
https://github.com/nextcloud/server.git
synced 2026-06-12 18:21:40 -04:00
Merge pull request #24047 from nextcloud/backport/23943/stable18
[stable18] Fix iLike() falsely turning escaped % and _ into wildcards
This commit is contained in:
commit
13f6dcfbf8
1 changed files with 1 additions and 3 deletions
|
|
@ -186,8 +186,6 @@ class OCIExpressionBuilder extends ExpressionBuilder {
|
|||
* @inheritdoc
|
||||
*/
|
||||
public function iLike($x, $y, $type = null) {
|
||||
$x = $this->helper->quoteColumnName($x);
|
||||
$y = $this->helper->quoteColumnName($y);
|
||||
return new QueryFunction('REGEXP_LIKE(' . $x . ', \'^\' || REPLACE(REPLACE(' . $y . ', \'%\', \'.*\'), \'_\', \'.\') || \'$\', \'i\')');
|
||||
return $this->like($this->functionBuilder->lower($x), $this->functionBuilder->lower($y));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue