Uploaded image for project: 'Doctrine DBAL'
  1. Doctrine DBAL
  2. DBAL-368

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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: 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

        k-fish Karsten Dambekalns created issue -
        Hide
        k-fish Karsten Dambekalns added a comment - - edited

        See DBAL-369 for the suggested fix

        Show
        k-fish Karsten Dambekalns added a comment - - edited See DBAL-369 for the suggested fix
        Hide
        ocramius Marco Pivetta added a comment -

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

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

        Nvm, it was DBAL-369

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

        Moved to DBAL-369

        Show
        ocramius Marco Pivetta added a comment - Moved to DBAL-369
        ocramius Marco Pivetta made changes -
        Field Original Value New Value
        Status Open [ 1 ] Closed [ 6 ]
        Resolution Duplicate [ 3 ]
        Hide
        doctrinebot Doctrine Bot added a comment -

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

        Show
        doctrinebot 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={expand=changesets[0:20].revisions[0:29],reviews, query=DBAL-368}, methodType=GET}] : Received status code 503 (Service Temporarily Unavailable)

          People

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

            Dates

            • Created:
              Updated:
              Resolved: