mirror of
https://github.com/nextcloud/server.git
synced 2026-06-12 02:00:51 -04:00
Fix iLike() falsely turning escaped % and _ into wildcards
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
f8b550dab7
commit
3a7e2fbff1
1 changed files with 1 additions and 3 deletions
|
|
@ -189,8 +189,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