Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

postgres: always save object as Buffer #378

Merged
merged 1 commit into from
Nov 8, 2013
Merged

Conversation

kapouer
Copy link
Contributor

@kapouer kapouer commented Nov 7, 2013

There is either a problem with Dialect.escapeVal,
or a problem with postgres 9.3 when casting string
to bytea. Some strings are not accepted (because of \ ?)

There is either a problem with Dialect.escapeVal,
or a problem with postgres 9.3 when casting string
to bytea. Some strings are not accepted (because of \ ?)
@kapouer
Copy link
Contributor Author

kapouer commented Nov 7, 2013

A better approach is to use now native JSON postgres support instead of BYTEA.
Actually, i think there should be two types: Buffer and JSON.
Buffer would map to bytea, JSON to text or better.

dresende added a commit that referenced this pull request Nov 8, 2013
postgres: always save object as Buffer
@dresende dresende merged commit 39c2d3c into dresende:master Nov 8, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants