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

        Hide
        Doctrine Bot added a comment -

        A related Github Pull-Request [GH-219] was closed:
        https://github.com/doctrine/dbal/pull/219

        Show
        Doctrine Bot added a comment - A related Github Pull-Request [GH-219] was closed: https://github.com/doctrine/dbal/pull/219
        Hide
        Marco Pivetta added a comment -

        Moved to DBAL-369

        Show
        Marco Pivetta added a comment - Moved to DBAL-369
        Hide
        Marco Pivetta added a comment -

        Nvm, it was DBAL-369

        Show
        Marco Pivetta added a comment - Nvm, it was DBAL-369
        Hide
        Marco Pivetta added a comment -

        Karsten Dambekalns DBAL-368 is this issue. What's the one you were referring to?

        Show
        Marco Pivetta added a comment - Karsten Dambekalns DBAL-368 is this issue. What's the one you were referring to?
        Hide
        Karsten Dambekalns added a comment - - edited

        See DBAL-369 for the suggested fix

        Show
        Karsten Dambekalns added a comment - - edited See DBAL-369 for the suggested fix

          People

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

            Dates

            • Created:
              Updated:
              Resolved: