mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-19 21:55:15 +00:00
fetch bytea as stream
This commit is contained in:
parent
8d52a278a9
commit
39f0707201
1 changed files with 2 additions and 1 deletions
|
@ -137,8 +137,9 @@ class dba_pdo extends dba_driver {
|
|||
|
||||
// The initial backslash inserted by escapebin above will have been stripped
|
||||
// by the postgres server, leaving us with '\x{hexdigits}'
|
||||
// The PDO driver returns bytea fields as streams, so fetch the content with fgets
|
||||
|
||||
return hex2bin(substr($str,2));
|
||||
return hex2bin(substr(fgets($str),2));
|
||||
}
|
||||
else {
|
||||
return $str;
|
||||
|
|
Loading…
Reference in a new issue