]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix "Invalid fetch style: 12" on Oracle
authorJoas Schilling <coding@schilljs.com>
Fri, 6 Nov 2020 13:13:11 +0000 (14:13 +0100)
committerJoas Schilling <coding@schilljs.com>
Tue, 10 Nov 2020 14:35:14 +0000 (15:35 +0100)
Signed-off-by: Joas Schilling <coding@schilljs.com>
apps/dav/tests/unit/DAV/CustomPropertiesBackendTest.php

index 2633ccf544fe0142b6597f7809fd28dc6d8c5697..86a88b3ccdccb78b4a115d80c3eea7f3a925ea65 100644 (file)
@@ -110,10 +110,13 @@ class CustomPropertiesBackendTest extends TestCase {
                        ->where($query->expr()->eq('userid', $query->createNamedParameter($user)))
                        ->where($query->expr()->eq('propertypath', $query->createNamedParameter($this->formatPath($path))));
 
-
                $result = $query->execute();
-               $data = $result->fetchAll(\PDO::FETCH_KEY_PAIR);
+               $data = [];
+               while ($row = $result->fetch()) {
+                       $data[$row['propertyname']] = $row['propertyvalue'];
+               }
                $result->closeCursor();
+
                return $data;
        }