Skip to content


DBAL-369: [GH-219] Fix storage of binary data for array and object types #1558

doctrinebot opened this Issue · 5 comments

2 participants


Jira issue originally created by user @beberlei:

This issue is created automatically through a Github pull request on behalf of kdambekalns:

Url: #219


serialize() returns binary data (NUL bytes) and not all platforms
handle that in CLOB fields (e.g. PostgreSQL).

This change uses base64 encoding to work around that, and transparently
reads (old) non-base64 data as well.

Fixes DBAL-368


Comment created by k-fish:

Any comments on that? Any chance this will go into DBAL at some point?


Comment created by @beberlei:

[~k-fish] Would it make sense instead to use a BLOB instead of a CLOB and have a flag in AbstractPlatform called "supportsNullByteInClob()"? This would not be BC, but i would prefer this way. We would need BC by adding this in a new PostgreSQL platform or sometihng like that


Comment created by @doctrinebot:

A related Github Pull-Request [GH-219] was closed:


Comment created by @doctrinebot:

A related Github Pull-Request [GH-219] was closed:


Issue was closed with resolution "Invalid"

@doctrinebot doctrinebot added the Bug label
@beberlei beberlei was assigned by doctrinebot
@doctrinebot doctrinebot closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.