diff options
author | Joas Schilling <coding@schilljs.com> | 2017-07-24 11:39:53 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2017-08-03 16:40:26 +0200 |
commit | bb30b876ae3efffa00e7e5ea6102de136af12c98 (patch) | |
tree | f38e6324da6844f3fbd29789ff4df268b79917d3 | |
parent | c9430fbb7799ae8ebe9ff0ef4831f85db16e79a0 (diff) | |
download | nextcloud-server-bb30b876ae3efffa00e7e5ea6102de136af12c98.tar.gz nextcloud-server-bb30b876ae3efffa00e7e5ea6102de136af12c98.zip |
Fix ILIKE regex for oracle
Signed-off-by: Joas Schilling <coding@schilljs.com>
-rw-r--r-- | lib/private/DB/QueryBuilder/ExpressionBuilder/OCIExpressionBuilder.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/DB/QueryBuilder/ExpressionBuilder/OCIExpressionBuilder.php b/lib/private/DB/QueryBuilder/ExpressionBuilder/OCIExpressionBuilder.php index 179ce72e8e1..dc5c8bccbca 100644 --- a/lib/private/DB/QueryBuilder/ExpressionBuilder/OCIExpressionBuilder.php +++ b/lib/private/DB/QueryBuilder/ExpressionBuilder/OCIExpressionBuilder.php @@ -166,6 +166,6 @@ class OCIExpressionBuilder extends ExpressionBuilder { 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\')'); + return new QueryFunction('REGEXP_LIKE(' . $x . ', \'^\' || REPLACE(REPLACE(' . $y . ', \'%\', \'.*\'), \'_\', \'.\') || \'$\', \'i\')'); } } |