]> git.immae.eu Git - github/wallabag/wallabag.git/commitdiff
Fix PostgreSQL query
authorJeremy Benoist <jeremy.benoist@gmail.com>
Sat, 8 Oct 2016 18:26:06 +0000 (20:26 +0200)
committerJeremy Benoist <jeremy.benoist@gmail.com>
Sat, 8 Oct 2016 18:26:06 +0000 (20:26 +0200)
PostgreSQL doesn’t like when we compare interger and boolean :)

src/Wallabag/UserBundle/Repository/UserRepository.php

index 178761e6da32ff4e3f758290f5d72c8688890946..445edb3c1077cb2826e2937cb7fccdff2ae4e2be 100644 (file)
@@ -48,7 +48,7 @@ class UserRepository extends EntityRepository
     {
         return $this->createQueryBuilder('u')
             ->select('count(u)')
-            ->andWhere('u.expired = 0')
+            ->andWhere('u.expired = false')
             ->getQuery()
             ->getSingleScalarResult();
     }