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

Closed
doctrinebot opened this Issue Oct 19, 2012 · 5 comments

2 participants

@doctrinebot

Jira issue originally created by user @beberlei:

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

Url: #219

Message:

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

@doctrinebot

Comment created by k-fish:

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

@doctrinebot

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

@doctrinebot

Comment created by @doctrinebot:

A related Github Pull-Request [GH-219] was closed:
doctrine/common#219

@doctrinebot

Comment created by @doctrinebot:

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

@doctrinebot

Issue was closed with resolution "Invalid"

@doctrinebot doctrinebot added the Bug label Dec 6, 2015
@beberlei beberlei was assigned by doctrinebot Dec 6, 2015
@doctrinebot doctrinebot closed this Dec 6, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment