Fix "Invalid fetch style: 12" on Oracle
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
48c2f6d5a0
commit
fcef3c0e8a
|
@ -110,10 +110,13 @@ class CustomPropertiesBackendTest extends TestCase {
|
||||||
->where($query->expr()->eq('userid', $query->createNamedParameter($user)))
|
->where($query->expr()->eq('userid', $query->createNamedParameter($user)))
|
||||||
->where($query->expr()->eq('propertypath', $query->createNamedParameter($this->formatPath($path))));
|
->where($query->expr()->eq('propertypath', $query->createNamedParameter($this->formatPath($path))));
|
||||||
|
|
||||||
|
|
||||||
$result = $query->execute();
|
$result = $query->execute();
|
||||||
$data = $result->fetchAll(\PDO::FETCH_KEY_PAIR);
|
$data = [];
|
||||||
|
while ($row = $result->fetch()) {
|
||||||
|
$data[$row['propertyname']] = $row['propertyvalue'];
|
||||||
|
}
|
||||||
$result->closeCursor();
|
$result->closeCursor();
|
||||||
|
|
||||||
return $data;
|
return $data;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue