summaryrefslogtreecommitdiffstats
path: root/lib/private/db/querybuilder/expressionbuilder/ociexpressionbuilder.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/db/querybuilder/expressionbuilder/ociexpressionbuilder.php')
-rw-r--r--lib/private/db/querybuilder/expressionbuilder/ociexpressionbuilder.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/private/db/querybuilder/expressionbuilder/ociexpressionbuilder.php b/lib/private/db/querybuilder/expressionbuilder/ociexpressionbuilder.php
index 6a6d0f455f6..bd7daa23911 100644
--- a/lib/private/db/querybuilder/expressionbuilder/ociexpressionbuilder.php
+++ b/lib/private/db/querybuilder/expressionbuilder/ociexpressionbuilder.php
@@ -149,4 +149,13 @@ class OCIExpressionBuilder extends ExpressionBuilder {
return parent::castColumn($column, $type);
}
+
+ /**
+ * @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('.$y.', \'%\', \'.*\') || \'$\', \'i\')');
+ }
}