Fix "Invalid fetch style: 12" on Oracle

Signed-off-by: Joas Schilling <coding@schilljs.com>
pull/23882/head
Joas Schilling 4 years ago
parent 39131519b2
commit 609c8a9cf8
No known key found for this signature in database
GPG Key ID: 7076EA9751AACDDA
  1. 7
      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;
}

Loading…
Cancel
Save