summaryrefslogtreecommitdiffstats
path: root/lib/private
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@owncloud.com>2016-01-26 12:14:55 +0100
committerJoas Schilling <nickvergessen@owncloud.com>2016-01-26 14:56:07 +0100
commit76f506e264473feec5534fa7aa8c2c33ef8ddb23 (patch)
treec8548913dc1b61afb6a4570abb5a7068c8ff2bf8 /lib/private
parenta0e8a9de612abb0fd5f147d33e69c774d54e5f29 (diff)
downloadnextcloud-server-76f506e264473feec5534fa7aa8c2c33ef8ddb23.tar.gz
nextcloud-server-76f506e264473feec5534fa7aa8c2c33ef8ddb23.zip
Use our OCP constants
Diffstat (limited to 'lib/private')
-rw-r--r--lib/private/db/connection.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/private/db/connection.php b/lib/private/db/connection.php
index 6c4f518dfb5..db5c66501b8 100644
--- a/lib/private/db/connection.php
+++ b/lib/private/db/connection.php
@@ -31,6 +31,7 @@ use Doctrine\DBAL\Cache\QueryCacheProfile;
use Doctrine\Common\EventManager;
use OC\DB\QueryBuilder\ExpressionBuilder;
use OC\DB\QueryBuilder\QueryBuilder;
+use OCP\DB\QueryBuilder\IQueryBuilder;
use OCP\IDBConnection;
use OCP\PreconditionNotMetException;
@@ -244,11 +245,11 @@ class Connection extends \Doctrine\DBAL\Connection implements IDBConnection {
private function getType($value) {
if (is_bool($value)) {
- return \PDO::PARAM_BOOL;
+ return IQueryBuilder::PARAM_BOOL;
} else if (is_int($value)) {
- return \PDO::PARAM_INT;
+ return IQueryBuilder::PARAM_INT;
} else {
- return \PDO::PARAM_STR;
+ return IQueryBuilder::PARAM_STR;
}
}