diff options
author | Joas Schilling <coding@schilljs.com> | 2017-07-20 20:13:35 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2017-08-02 09:48:12 +0200 |
commit | b29baababdbc56b1633eca2d8357dd6b87268050 (patch) | |
tree | 3859d0d4ca93c2570483c22462c9740b3502b983 /lib/private/Files/Config/UserMountCache.php | |
parent | 2800e017dea5eb81590696101df1729a37c753ca (diff) | |
download | nextcloud-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.php | 7 |
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; } } |