summaryrefslogtreecommitdiffstats
path: root/lib/private/db
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@owncloud.com>2016-02-29 09:44:40 +0100
committerJoas Schilling <nickvergessen@owncloud.com>2016-02-29 09:44:40 +0100
commit2a0cda74d41ece6bee48024dd485bf08087054ad (patch)
tree8c3e8b30d3db45d3c17de189188f15aa7062cf81 /lib/private/db
parent6526c122afa2c141f4cd5ffd7e292f7a5556cf61 (diff)
downloadnextcloud-server-2a0cda74d41ece6bee48024dd485bf08087054ad.tar.gz
nextcloud-server-2a0cda74d41ece6bee48024dd485bf08087054ad.zip
Use IQueryBuilder::PARAM_* instead of \PDO::PARAM_*
Diffstat (limited to 'lib/private/db')
-rw-r--r--lib/private/db/querybuilder/querybuilder.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/private/db/querybuilder/querybuilder.php b/lib/private/db/querybuilder/querybuilder.php
index de803116dc4..76959668476 100644
--- a/lib/private/db/querybuilder/querybuilder.php
+++ b/lib/private/db/querybuilder/querybuilder.php
@@ -168,7 +168,7 @@ class QueryBuilder implements IQueryBuilder {
*
* @param string|integer $key The parameter position or name.
* @param mixed $value The parameter value.
- * @param string|null $type One of the PDO::PARAM_* constants.
+ * @param string|null $type One of the IQueryBuilder::PARAM_* constants.
*
* @return \OCP\DB\QueryBuilder\IQueryBuilder This QueryBuilder instance.
*/
@@ -988,7 +988,7 @@ class QueryBuilder implements IQueryBuilder {
*
* @return IParameter the placeholder name used.
*/
- public function createNamedParameter($value, $type = \PDO::PARAM_STR, $placeHolder = null) {
+ public function createNamedParameter($value, $type = IQueryBuilder::PARAM_STR, $placeHolder = null) {
return new Parameter($this->queryBuilder->createNamedParameter($value, $type, $placeHolder));
}
@@ -1005,8 +1005,8 @@ class QueryBuilder implements IQueryBuilder {
* $qb = $conn->getQueryBuilder();
* $qb->select('u.*')
* ->from('users', 'u')
- * ->where('u.username = ' . $qb->createPositionalParameter('Foo', PDO::PARAM_STR))
- * ->orWhere('u.username = ' . $qb->createPositionalParameter('Bar', PDO::PARAM_STR))
+ * ->where('u.username = ' . $qb->createPositionalParameter('Foo', IQueryBuilder::PARAM_STR))
+ * ->orWhere('u.username = ' . $qb->createPositionalParameter('Bar', IQueryBuilder::PARAM_STR))
* </code>
*
* @param mixed $value
@@ -1014,7 +1014,7 @@ class QueryBuilder implements IQueryBuilder {
*
* @return IParameter
*/
- public function createPositionalParameter($value, $type = \PDO::PARAM_STR) {
+ public function createPositionalParameter($value, $type = IQueryBuilder::PARAM_STR) {
return new Parameter($this->queryBuilder->createPositionalParameter($value, $type));
}
@@ -1027,7 +1027,7 @@ class QueryBuilder implements IQueryBuilder {
* $qb->select('u.*')
* ->from('users', 'u')
* ->where('u.username = ' . $qb->createParameter('name'))
- * ->setParameter('name', 'Bar', PDO::PARAM_STR))
+ * ->setParameter('name', 'Bar', IQueryBuilder::PARAM_STR))
* </code>
*
* @param string $name