Skip to content
Snippets Groups Projects
Unverified Commit fb5d1b40 authored by Morris Jobke's avatar Morris Jobke Committed by GitHub
Browse files

Merge pull request #23943 from nextcloud/bugfix/oci/fix-ilike-on-oracle

Fix iLike() falsely turning escaped % and _ into wildcards
parents 9981ffd7 cb8bef1f
No related branches found
No related tags found
No related merge requests found
......@@ -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));
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment