Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2020-11-06 17:31:28 +0300
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>2020-11-11 12:27:27 +0300
commitddc94e44b76fdec2e52971fb1370e792d971885d (patch)
treee8252a69d7ab6bfbc98ee7cd74cd56d0b5f5f4f4 /lib
parent9650ec1a6ed16e4a2c4ed37b9252c166f319101a (diff)
Fix iLike() falsely turning escaped % and _ into wildcards
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/private/DB/QueryBuilder/ExpressionBuilder/OCIExpressionBuilder.php4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/private/DB/QueryBuilder/ExpressionBuilder/OCIExpressionBuilder.php b/lib/private/DB/QueryBuilder/ExpressionBuilder/OCIExpressionBuilder.php
index 12719b2aaad..23afcbd9f96 100644
--- a/lib/private/DB/QueryBuilder/ExpressionBuilder/OCIExpressionBuilder.php
+++ b/lib/private/DB/QueryBuilder/ExpressionBuilder/OCIExpressionBuilder.php
@@ -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));
}
}