Skip to content

postgres: always save object as Buffer#378

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

postgres: always save object as Buffer#378
dresende merged 1 commit intodresende:masterfrom
kapouer:pg-bytea

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