From 8dcef5ef2143506090a2e7a6de26097b816d0b60 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=B4me=20Chilliet?= Date: Tue, 11 Aug 2026 13:57:15 +0200 Subject: [PATCH] fix(user_ldap): Use proper function builder instead of hardcoded COUNT MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Côme Chilliet --- apps/user_ldap/lib/Mapping/AbstractMapping.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/user_ldap/lib/Mapping/AbstractMapping.php b/apps/user_ldap/lib/Mapping/AbstractMapping.php index 81354ad06b530..5ef0bc1f206ed 100644 --- a/apps/user_ldap/lib/Mapping/AbstractMapping.php +++ b/apps/user_ldap/lib/Mapping/AbstractMapping.php @@ -94,7 +94,7 @@ protected function useCacheByUserCount(): bool { } $qb = $this->dbc->getQueryBuilder(); - $q = $qb->selectAlias($qb->createFunction('COUNT(owncloud_name)'), 'count') + $q = $qb->select($qb->func()->count('owncloud_name', 'count')) ->from($this->getTableName()); $q->setMaxResults(self::LOCAL_CACHE_OBJECT_THRESHOLD + 1); $result = $q->executeQuery();