From 90ce8763788acb5d81aa1011528c6576a0b0d153 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Tue, 26 Jan 2016 10:45:29 +0100 Subject: [PATCH] Adjust comments to the new constants --- lib/private/db/querybuilder/expressionbuilder.php | 2 +- lib/private/db/querybuilder/ociexpressionbuilder.php | 4 +++- lib/public/db/querybuilder/iexpressionbuilder.php | 2 +- 3 files changed, 5 insertions(+), 3 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); diff --git a/lib/public/db/querybuilder/iexpressionbuilder.php b/lib/public/db/querybuilder/iexpressionbuilder.php index 0549d3f0125..6163680c126 100644 --- a/lib/public/db/querybuilder/iexpressionbuilder.php +++ b/lib/public/db/querybuilder/iexpressionbuilder.php @@ -84,7 +84,7 @@ interface IExpressionBuilder { * * @param mixed $x The left expression. * @param mixed $y The right expression. - * @param int|null $type @since 9.0.0 one of the \PDO::PARAM_* constants + * @param int|null $type @since 9.0.0 one of the IQueryBuilder::PARAM_* constants * required when comparing text fields for oci compatibility. * * @return string -- 2.39.5