nextcloud/lib/public/AppFramework/Db
Thomas Citharel 1d30fb7852
Fix reading blob data as resource
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>
2022-07-25 09:45:47 +02:00
..
DoesNotExistException.php Update php licenses 2021-06-04 22:02:41 +02:00
Entity.php Fix reading blob data as resource 2022-07-25 09:45:47 +02:00
IMapperException.php Update php licenses 2021-06-04 22:02:41 +02:00
Mapper.php Update php licenses 2021-06-04 22:02:41 +02:00
MultipleObjectsReturnedException.php Update php licenses 2021-06-04 22:02:41 +02:00
QBMapper.php Always free the DB result in QBMapper::findEntities 2022-05-12 09:51:37 +02:00
TTransactional.php Add Transactional trait for atomic DB operations 2022-02-17 09:58:41 +01:00