summaryrefslogtreecommitdiffstats
path: root/lib/private/db
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@owncloud.com>2016-01-26 10:45:29 +0100
committerJoas Schilling <nickvergessen@owncloud.com>2016-01-26 14:56:07 +0100
commit90ce8763788acb5d81aa1011528c6576a0b0d153 (patch)
treed9478ea6e32d2b21ad5edfcb7ee338469a8bb35e /lib/private/db
parent3da78c8f1c9355a726f289e834fa237366c3df20 (diff)
downloadnextcloud-server-90ce8763788acb5d81aa1011528c6576a0b0d153.tar.gz
nextcloud-server-90ce8763788acb5d81aa1011528c6576a0b0d153.zip
Adjust comments to the new constants
Diffstat (limited to 'lib/private/db')
-rw-r--r--lib/private/db/querybuilder/expressionbuilder.php2
-rw-r--r--lib/private/db/querybuilder/ociexpressionbuilder.php4
2 files changed, 4 insertions, 2 deletions
diff --git a/lib/private/db/querybuilder/expressionbuilder.php b/lib/private/db/querybuilder/expressionbuilder.php
index 1e86db5a081..a4621da1a4e 100644
--- a/lib/private/db/querybuilder/expressionbuilder.php
+++ b/lib/private/db/querybuilder/expressionbuilder.php
@@ -109,7 +109,7 @@ class ExpressionBuilder implements IExpressionBuilder {
*
* @param mixed $x The left expression.
* @param mixed $y The right expression.
- * @param int|null $type one of the \PDO::PARAM_* constants
+ * @param int|null $type one of the IQueryBuilder::PARAM_* constants
* required when comparing text fields for oci compatibility
*
* @return string
diff --git a/lib/private/db/querybuilder/ociexpressionbuilder.php b/lib/private/db/querybuilder/ociexpressionbuilder.php
index 742611bf719..62cb5aa62ad 100644
--- a/lib/private/db/querybuilder/ociexpressionbuilder.php
+++ b/lib/private/db/querybuilder/ociexpressionbuilder.php
@@ -21,11 +21,13 @@
namespace OC\DB\QueryBuilder;
+use OCP\DB\QueryBuilder\IQueryBuilder;
+
class OCIExpressionBuilder extends ExpressionBuilder {
public function eq($x, $y, $type = null) {
$x = $this->helper->quoteColumnName($x);
$y = $this->helper->quoteColumnName($y);
- if ($type === \PDO::PARAM_STR) {
+ if ($type === IQueryBuilder::PARAM_STR) {
$x = new QueryFunction('to_char(' . $x . ')');
}
return $this->expressionBuilder->eq($x, $y);