Skip to content

[stable24] Fix reading blob data as resource - #33343

Merged
nickvergessen merged 1 commit into
stable24from
backport/33129/stable24
Jul 26, 2022
Merged

[stable24] Fix reading blob data as resource#33343
nickvergessen merged 1 commit into
stable24from
backport/33129/stable24

Conversation

@backportbot-nextcloud

Copy link
Copy Markdown

backport of #33129

PostgreSQL returns data as resource when using IQueryBuilder::PARAM_LOB
(which is used for QBMapper).
Previously we just converted this resource using settype, which produced
things like "Resource id #14" instead of the actual resource data.
Now we read the stream correctly if the returned data is a resource
See context at #22472Fixes#22439
Signed-off-by: Thomas Citharel <tcit@tcit.fr>

@PVince81PVince81 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@PVince81PVince81 added the 4. to release Ready to be released and/or waiting for tests to finish label Jul 25, 2022
@nickvergessen
nickvergessen merged commit 1749771 into stable24Jul 26, 2022
@nickvergessen
nickvergessen deleted the backport/33129/stable24 branch July 26, 2022 07:43
@blizzzblizzz mentioned this pull request Aug 1, 2022
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

4. to releaseReady to be released and/or waiting for tests to finishbugphpPull requests that update Php code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@PVince81@tcitworld@nickvergessen