diff options
Diffstat (limited to 'tests/lib/db')
-rw-r--r-- | tests/lib/db/connection.php | 3 | ||||
-rw-r--r-- | tests/lib/db/querybuilder/expressionbuildertest.php | 2 |
2 files changed, 3 insertions, 2 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(); diff --git a/tests/lib/db/querybuilder/expressionbuildertest.php b/tests/lib/db/querybuilder/expressionbuildertest.php index f38faab9169..4122f300c86 100644 --- a/tests/lib/db/querybuilder/expressionbuildertest.php +++ b/tests/lib/db/querybuilder/expressionbuildertest.php @@ -327,7 +327,7 @@ class ExpressionBuilderTest extends TestCase { [1, null], [1, 'string'], [1, 'integer'], - [1, \PDO::PARAM_INT], + [1, IQueryBuilder::PARAM_INT], ]; } |