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

PQsendQuery returned error code #101

Closed
arifmdev opened this issue Aug 14, 2023 · 0 comments
Closed

PQsendQuery returned error code #101

arifmdev opened this issue Aug 14, 2023 · 0 comments

Comments

@arifmdev
Copy link

This is more or less a re-open of brianc/node-postgres#48, since the error is still occurring. It seems pretty clear, since binding.cc throws when it gets a error result code. Mainly I guess it's more of a question of API, and this seems like a mistake - since the behavior should be to continue to call the callback with an error parameter, and to use PQerrorMessage to get a more descriptive error message.

I might be able to hack up a pull request fixing this, because the error's pretty reproducible from my code.

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

1 participant