]> source.dussan.org Git - nextcloud-server.git/commitdiff
Adjust comments to the new constants
authorJoas Schilling <nickvergessen@owncloud.com>
Tue, 26 Jan 2016 09:45:29 +0000 (10:45 +0100)
committerJoas Schilling <nickvergessen@owncloud.com>
Tue, 26 Jan 2016 13:56:07 +0000 (14:56 +0100)
lib/private/db/querybuilder/expressionbuilder.php
lib/private/db/querybuilder/ociexpressionbuilder.php
lib/public/db/querybuilder/iexpressionbuilder.php

index 1e86db5a081569318daec3568a1a80341a4836e6..a4621da1a4e2147bb54538936f98954441e20bce 100644 (file)
@@ -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
index 742611bf7194421d80d3e46cad2f940b031015ea..62cb5aa62aded79ad697592fccdc63316ad53218 100644 (file)
 
 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);
index 0549d3f0125e4282b5d4044c9bc262676b6912f1..6163680c1262e84b7983d62f2c65c6807b3b852c 100644 (file)
@@ -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