diff options
-rw-r--r-- | lib/private/db/connection.php | 7 |
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; } } |