summaryrefslogtreecommitdiffstats
path: root/lib/private/Files/Config/UserMountCache.php
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2017-07-20 20:13:35 +0200
committerJoas Schilling <coding@schilljs.com>2017-08-02 09:48:12 +0200
commitb29baababdbc56b1633eca2d8357dd6b87268050 (patch)
tree3859d0d4ca93c2570483c22462c9740b3502b983 /lib/private/Files/Config/UserMountCache.php
parent2800e017dea5eb81590696101df1729a37c753ca (diff)
downloadnextcloud-server-b29baababdbc56b1633eca2d8357dd6b87268050.tar.gz
nextcloud-server-b29baababdbc56b1633eca2d8357dd6b87268050.zip
Oracle does not support PDO::FETCH_KEY_PAIR
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/private/Files/Config/UserMountCache.php')
-rw-r--r--lib/private/Files/Config/UserMountCache.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/private/Files/Config/UserMountCache.php b/lib/private/Files/Config/UserMountCache.php
index 7ecad6e8cfb..9466aaf6c89 100644
--- a/lib/private/Files/Config/UserMountCache.php
+++ b/lib/private/Files/Config/UserMountCache.php
@@ -365,6 +365,11 @@ class UserMountCache implements IUserMountCache {
$result = $query->execute();
- return $result->fetchAll(\PDO::FETCH_KEY_PAIR);
+ $results = [];
+ while ($row = $result->fetch()) {
+ $results[$row['user_id']] = $row['size'];
+ }
+ $result->closeCursor();
+ return $results;
}
}