Uh oh!
There was an error while loading. Please reload this page.
Fix reading blob data as resource - #33129
Conversation
tcitworld
commented
Jul 6, 2022
/backport to stable24 |
tcitworld
commented
Jul 6, 2022
/backport to stable23 |
tcitworld
commented
Jul 6, 2022
/backport to stable22 |
tcitworld
commented
Jul 6, 2022
@szaimen If you can try this patch |
nickvergessen
commented
Jul 6, 2022
Can we get a test added? |
fdab572 to
be520d7Comparetcitworld
commented
Jul 6, 2022
There you go |
nickvergessen
left a comment
There was a problem hiding this comment.
I actually meant a real test reading stuff from the database, but fine by me for now
tcitworld
commented
Jul 7, 2022
Where would I create such a functional test? Still in |
nickvergessen
commented
Jul 7, 2022
Yes, tests/lib/AppFramework/DB/EntityTest.php |
blizzz
commented
Jul 8, 2022
Linter is unhappy |
be520d7 to
89c543fComparetcitworld
commented
Jul 11, 2022
Made it happy |
Possible performance regression detected Show Output |
blizzz
commented
Jul 22, 2022
/compile amend / |
89c543f to
6f65b50Comparetcitworld
commented
Jul 23, 2022
Why the compile amend? :( |
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>
6f65b50 to
1d30fb7Comparenickvergessen
commented
Jul 25, 2022
It was just the wrong command, I guess he wanted to rebase because that is what github complained about. |
yeah, sorry, was rushing through review requests |
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