diff options
author | Joas Schilling <coding@schilljs.com> | 2020-11-06 14:13:11 +0100 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2020-11-10 15:35:14 +0100 |
commit | 609c8a9cf85f404ff3d8ed9db23a1cf5852047b4 (patch) | |
tree | 27570e0720024d1d4307b3514d0411cb5dfe308c /apps/dav/tests/unit | |
parent | 39131519b2f425e50f929eedb6fe81c5991ed1b9 (diff) | |
download | nextcloud-server-609c8a9cf85f404ff3d8ed9db23a1cf5852047b4.tar.gz nextcloud-server-609c8a9cf85f404ff3d8ed9db23a1cf5852047b4.zip |
Fix "Invalid fetch style: 12" on Oracle
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'apps/dav/tests/unit')
-rw-r--r-- | apps/dav/tests/unit/DAV/CustomPropertiesBackendTest.php | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/apps/dav/tests/unit/DAV/CustomPropertiesBackendTest.php b/apps/dav/tests/unit/DAV/CustomPropertiesBackendTest.php index 2633ccf544f..86a88b3ccdc 100644 --- a/apps/dav/tests/unit/DAV/CustomPropertiesBackendTest.php +++ b/apps/dav/tests/unit/DAV/CustomPropertiesBackendTest.php @@ -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; } |