summaryrefslogtreecommitdiffstats
path: root/tests/lib/db/connection.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lib/db/connection.php')
-rw-r--r--tests/lib/db/connection.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/lib/db/connection.php b/tests/lib/db/connection.php
index dd9b31f3ed7..b10b1a322a9 100644
--- a/tests/lib/db/connection.php
+++ b/tests/lib/db/connection.php
@@ -11,6 +11,7 @@ namespace Test\DB;
use Doctrine\DBAL\Platforms\SqlitePlatform;
use OC\DB\MDB2SchemaManager;
+use OCP\DB\QueryBuilder\IQueryBuilder;
/**
* Class Connection
@@ -94,7 +95,7 @@ class Connection extends \Test\TestCase {
$builder = $this->connection->getQueryBuilder();
$query = $builder->select('textfield')
->from('table')
- ->where($builder->expr()->eq('integerfield', $builder->createNamedParameter($integerField, \PDO::PARAM_INT)));
+ ->where($builder->expr()->eq('integerfield', $builder->createNamedParameter($integerField, IQueryBuilder::PARAM_INT)));
$result = $query->execute();
return $result->fetchColumn();