diff --git a/lib/ClustersBackend/FaceRecognitionBackend.php b/lib/ClustersBackend/FaceRecognitionBackend.php index 1e5cba6d..7003becc 100644 --- a/lib/ClustersBackend/FaceRecognitionBackend.php +++ b/lib/ClustersBackend/FaceRecognitionBackend.php @@ -258,7 +258,7 @@ class FaceRecognitionBackend extends Backend // By default it shows the people who were not hidden if (!$show_hidden) { - $query->andWhere($query->expr()->eq('frp.is_visible', $query->expr()->literal(true, \PDO::PARAM_BOOL))); + $query->andWhere($query->expr()->eq('frp.is_visible', $query->expr()->literal(1))); } // ORDER by number of faces in cluster and id for response stability. diff --git a/lib/Db/TimelineQueryFilters.php b/lib/Db/TimelineQueryFilters.php index d5e843ff..5c31aa18 100644 --- a/lib/Db/TimelineQueryFilters.php +++ b/lib/Db/TimelineQueryFilters.php @@ -33,7 +33,7 @@ trait TimelineQueryFilters public function transformVideoFilter(IQueryBuilder &$query, bool $aggregate) { - $query->andWhere($query->expr()->eq('m.isvideo', $query->expr()->literal(true, \PDO::PARAM_BOOL))); + $query->andWhere($query->expr()->eq('m.isvideo', $query->expr()->literal(1))); } public function transformLimit(IQueryBuilder &$query, bool $aggregate, int $limit) diff --git a/lib/Db/TimelineWriteOrphans.php b/lib/Db/TimelineWriteOrphans.php index 9539206d..08c7bf2b 100644 --- a/lib/Db/TimelineWriteOrphans.php +++ b/lib/Db/TimelineWriteOrphans.php @@ -80,7 +80,7 @@ trait TimelineWriteOrphans $query = $this->connection->getQueryBuilder(); $query->select(...$fields) ->from('memories') - ->where($query->expr()->eq('orphan', $query->expr()->literal(true, IQueryBuilder::PARAM_BOOL))) + ->where($query->expr()->eq('orphan', $query->expr()->literal(1))) ->setMaxResults($count) ; diff --git a/lib/Service/Index.php b/lib/Service/Index.php index 18f63e8e..9e32a7bf 100644 --- a/lib/Service/Index.php +++ b/lib/Service/Index.php @@ -155,7 +155,7 @@ class Index $query->leftJoin('f', $table, $alias, $query->expr()->andX( $query->expr()->eq('f.fileid', "{$alias}.fileid"), $query->expr()->eq('f.mtime', "{$alias}.mtime"), - $query->expr()->eq("{$alias}.orphan", $query->expr()->literal(false, IQueryBuilder::PARAM_BOOL)) + $query->expr()->eq("{$alias}.orphan", $query->expr()->literal(0)) )); $query->andWhere($query->expr()->isNull("{$alias}.fileid"));