Skip to content

Postgres Native Error Code Change #919

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

Closed
RHavar opened this issue Jan 18, 2016 · 2 comments
Closed

Postgres Native Error Code Change #919

RHavar opened this issue Jan 18, 2016 · 2 comments

Comments

@RHavar
Copy link

RHavar commented Jan 18, 2016

Just in reply to:

If you find yourself having to change code other than the require statement when switching from require('pg') to require('pg').native please report an issue

I recently switched to postgres native, and had to make this change:

https://github.com/moneypot/bustabit-gameserver/commit/d82a2346704e620855816a128f561a7440ff6258

Although I jumped a few version ( https://github.com/moneypot/bustabit-gameserver/commit/e2c192178a031ff55f277c3f8324f67fc7c99a13 ) so it's possible the change is more to do with pg 3.3 -> 4.3, rather than pg native. (Although I didn't see anything about the api change in the release notes)

@abenhamdine
Copy link
Contributor

the change seems to concern the whole error object, see #938

@charmander
Copy link
Collaborator

The links are now dead; if the resolution to #938 didn’t fix your problem, please comment.

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

No branches or pull requests

3 participants