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

pgconn: add LastError() #1825

Closed
wants to merge 1 commit into from

Conversation

jameshartig
Copy link
Contributor

LastError() returns the last error encountered by the underlying connection or received from postgres. It is cleared when a new request is initiated.

Fixes #1803

LastError() returns the last error encountered by the underlying connection
or received from postgres. It is cleared when a new request is initiated.

Fixes jackc#1803
@jameshartig
Copy link
Contributor Author

Closing in favor of #1826. See #1803 (comment)

@jameshartig jameshartig closed this Dec 5, 2023
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.

Destroy connection on particular errors
1 participant