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 -
        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
        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
        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 -

        Moved to DBAL-369

        Show
        Marco Pivetta added a comment - Moved to DBAL-369
        Marco Pivetta made changes -
        Field Original Value New Value
        Status Open [ 1 ] Closed [ 6 ]
        Resolution Duplicate [ 3 ]
        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

        This list may be incomplete, as errors occurred whilst retrieving source from linked applications:

        • Request to http://www.doctrine-project.org/fisheye/ failed: Error in remote call to 'FishEye 0 (http://www.doctrine-project.org/fisheye/)' (http://www.doctrine-project.org/fisheye) [AbstractRestCommand{path='/rest-service-fe/search-v1/crossRepositoryQuery', params={query=DBAL-368, expand=changesets[0:20].revisions[0:29],reviews}, methodType=GET}] : Received status code 503 (Service Temporarily Unavailable)

          People

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

            Dates

            • Created:
              Updated:
              Resolved: