From e1b882226709ebd166bf83ca2f2acd49645ddc29 Mon Sep 17 00:00:00 2001 From: Benjamin Gaussorgues Date: Tue, 29 Oct 2024 11:32:14 +0100 Subject: [PATCH] Test Signed-off-by: Benjamin Gaussorgues --- lib/private/User/Manager.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/private/User/Manager.php b/lib/private/User/Manager.php index 7f5b06cc5f654..090b35c0f166b 100644 --- a/lib/private/User/Manager.php +++ b/lib/private/User/Manager.php @@ -758,9 +758,11 @@ public function getLastLoggedInUsers(?int $limit = null, int $offset = 0, string ->from('preferences', 'pref_login') ->where($queryBuilder->expr()->eq('pref_login.appid', $queryBuilder->expr()->literal('login'))) ->andWhere($queryBuilder->expr()->eq('pref_login.configkey', $queryBuilder->expr()->literal('lastLogin'))) - ->setFirstResult($offset) - ->setMaxResults($limit) + //->setFirstResult($offset) + //->setMaxResults($limit) ; + var_dump($queryBuilder->executeQuery()->fetchAll(\PDO::FETCH_COLUMN)); + exit; // Oracle don't want to run ORDER BY on CLOB column $loginOrder = $connection->getDatabasePlatform() instanceof OraclePlatform