Doctrine DBAL
  1. Doctrine DBAL
  2. DBAL-368

array and object types should use BLOB, not CLOB, to store serialized data

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Duplicate
    • Affects Version/s: 2.2.2
    • Fix Version/s: None
    • Component/s: None
    • Security Level: All
    • Labels:

      Description

      When using array or object types, PHP's serialize() is used. Since that can return NUL bytes, using a text type will fail at least on PostgreSQL (just search the web for issues of that kind…).

      So ArrayType and ObjectType should return a BLOB definition instead of a CLOB definition to be binary-safe.

        Activity

        Karsten Dambekalns created issue -
        Marco Pivetta made changes -
        Field Original Value New Value
        Status Open [ 1 ] Closed [ 6 ]
        Resolution Duplicate [ 3 ]

          People

          • Assignee:
            Benjamin Eberlei
            Reporter:
            Karsten Dambekalns
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: