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

@jameshartig jameshartig force-pushed the 1803-pgconn-last-error branch from 969b244 to b2cb3ad Compare December 4, 2023 22:53
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 jameshartig force-pushed the 1803-pgconn-last-error branch from b2cb3ad to 9d1eab4 Compare December 4, 2023 23:08
@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