Use our OCP constants
This commit is contained in:
parent
a0e8a9de61
commit
76f506e264
1 changed files with 4 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue