Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[stable23] Fix reading blob data as resource #33344

Merged
merged 1 commit into from
Jul 26, 2022

Conversation

backportbot-nextcloud[bot]
Copy link

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 #22472

Fixes #22439

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
@backportbot-nextcloud backportbot-nextcloud bot added bug php Pull requests that update Php code labels Jul 25, 2022
@backportbot-nextcloud backportbot-nextcloud bot added this to the Nextcloud 23.0.8 milestone Jul 25, 2022
Copy link
Member

@PVince81 PVince81 left a comment

Choose a reason for hiding this comment

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

👍

@PVince81 PVince81 added the 4. to release Ready to be released and/or waiting for tests to finish label Jul 25, 2022
@nickvergessen nickvergessen merged commit 339dfb8 into stable23 Jul 26, 2022
@nickvergessen nickvergessen deleted the backport/33129/stable23 branch July 26, 2022 07:44
@blizzz blizzz mentioned this pull request Aug 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4. to release Ready to be released and/or waiting for tests to finish bug php Pull requests that update Php code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants