Project

General

Profile

Actions

Task #78884

closed

Ensure consistent handling of BLOBs in database queries

Added by Morton Jonuschat almost 8 years ago. Updated about 7 years ago.

Status:
Closed
Priority:
Should have
Category:
Database API (Doctrine DBAL)
Target version:
Start date:
2016-12-09
Due date:
% Done:

100%

Estimated time:
(Total: 0.00 h)
TYPO3 Version:
8
PHP Version:
7.1
Tags:
Complexity:
Sprint Focus:

Description

Different database drivers handle BLOBs differently. The way TYPO3 treats them as strings leads to a couple of problems

  1. Some database drivers require special handling of BLOBs on write access to deal with encoding
  2. Some database drivers return BLOBs as resources on read access

To ease the handling of BLOBs in the core they should always be treated as (decoded) strings on read and should be marked as a BLOB/BINARY type on write. The read access side of things can be dealt with automatically, write access needs to properly declare the data type.


Subtasks 1 (0 open1 closed)

Task #78930: Integrate driver into functional testsClosedManuel Selbach2016-12-09

Actions
Actions

Also available in: Atom PDF