Skip to content

postgres: always save object as Buffer - #378

Merged
dresende merged 1 commit into
dresende:masterfrom
kapouer:pg-bytea
Nov 8, 2013
Merged

dresende merged 1 commit into
dresende:masterfrom
kapouer:pg-bytea

Conversation

@kapouer

@kapouer kapouer commented Nov 7, 2013

Copy link
Copy Markdown
Contributor

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

kapouer commented Nov 7, 2013

Copy link
Copy Markdown
Contributor Author

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