summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@owncloud.com>2016-02-23 08:50:52 +0100
committerJoas Schilling <nickvergessen@owncloud.com>2016-02-23 08:50:52 +0100
commit8754ea6c8a61d10f0972bf91cc2314be28016671 (patch)
tree9e124075d1e06fe2a9f4696240a99fbb334f57fe /lib
parent4dfdb2720c66c1dcc0964baf9e83a9ce56f41616 (diff)
downloadnextcloud-server-8754ea6c8a61d10f0972bf91cc2314be28016671.tar.gz
nextcloud-server-8754ea6c8a61d10f0972bf91cc2314be28016671.zip
Make sure we don't quote column names twice
Diffstat (limited to 'lib')
-rw-r--r--lib/private/db/querybuilder/expressionbuilder/mysqlexpressionbuilder.php2
-rw-r--r--lib/private/db/querybuilder/expressionbuilder/ociexpressionbuilder.php2
-rw-r--r--lib/private/db/querybuilder/expressionbuilder/pgsqlexpressionbuilder.php2
3 files changed, 3 insertions, 3 deletions
diff --git a/lib/private/db/querybuilder/expressionbuilder/mysqlexpressionbuilder.php b/lib/private/db/querybuilder/expressionbuilder/mysqlexpressionbuilder.php
index df5f1a4b701..8164d9623b8 100644
--- a/lib/private/db/querybuilder/expressionbuilder/mysqlexpressionbuilder.php
+++ b/lib/private/db/querybuilder/expressionbuilder/mysqlexpressionbuilder.php
@@ -33,7 +33,7 @@ class MySqlExpressionBuilder extends ExpressionBuilder {
public function iLike($x, $y, $type = null) {
$x = $this->helper->quoteColumnName($x);
$y = $this->helper->quoteColumnName($y);
- return $this->comparison($x, ' COLLATE utf8_general_ci LIKE', $y);
+ return $this->expressionBuilder->comparison($x, ' COLLATE utf8_general_ci LIKE', $y);
}
}
diff --git a/lib/private/db/querybuilder/expressionbuilder/ociexpressionbuilder.php b/lib/private/db/querybuilder/expressionbuilder/ociexpressionbuilder.php
index a508ba140b5..bd7daa23911 100644
--- a/lib/private/db/querybuilder/expressionbuilder/ociexpressionbuilder.php
+++ b/lib/private/db/querybuilder/expressionbuilder/ociexpressionbuilder.php
@@ -156,6 +156,6 @@ class OCIExpressionBuilder extends ExpressionBuilder {
public function iLike($x, $y, $type = null) {
$x = $this->helper->quoteColumnName($x);
$y = $this->helper->quoteColumnName($y);
- return 'REGEXP_LIKE(`'.$x.'`, \'^\' || REPLACE('.$y.', \'%\', \'.*\') || \'$\', \'i\')';
+ return new QueryFunction('REGEXP_LIKE('.$x.', \'^\' || REPLACE('.$y.', \'%\', \'.*\') || \'$\', \'i\')');
}
}
diff --git a/lib/private/db/querybuilder/expressionbuilder/pgsqlexpressionbuilder.php b/lib/private/db/querybuilder/expressionbuilder/pgsqlexpressionbuilder.php
index fecfaeb698f..ac2d7bf2421 100644
--- a/lib/private/db/querybuilder/expressionbuilder/pgsqlexpressionbuilder.php
+++ b/lib/private/db/querybuilder/expressionbuilder/pgsqlexpressionbuilder.php
@@ -49,7 +49,7 @@ class PgSqlExpressionBuilder extends ExpressionBuilder {
public function iLike($x, $y, $type = null) {
$x = $this->helper->quoteColumnName($x);
$y = $this->helper->quoteColumnName($y);
- return $this->comparison($x, 'ILIKE', $y);
+ return $this->expressionBuilder->comparison($x, 'ILIKE', $y);
}
}