Skip to content

Commit

Permalink
fix: Internal Server Error: fastQuery returns Postgresql blob as reso…
Browse files Browse the repository at this point in the history
…urce instead of string - #563
  • Loading branch information
SergeyMosin committed Nov 23, 2024
1 parent ca8ce6b commit de9a080
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/Backend/BCSabreImpl.php
Original file line number Diff line number Diff line change
Expand Up @@ -1346,10 +1346,15 @@ private function fastQuery(array $calIds, int $startTs, int $endTs, array $propF

if (empty($additionalColumns)) {
while ($row = $result->fetch()) {
yield $row['calendardata'];
$cdata = $row['calendardata'];
yield is_resource($cdata) ? stream_get_contents($cdata) : $cdata;
}
} else {
while ($row = $result->fetch()) {
$cdata = $row['calendardata'];
if (is_resource($cdata)) {
$row['calendardata'] = stream_get_contents($cdata);
}
yield $row;
}
}
Expand Down

0 comments on commit de9a080

Please sign in to comment.