error: add SQLState by drakkan · Pull Request #1080 · lib/pq
Navigation Menu
{{ message }}
- Notifications You must be signed in to change notification settings
- Fork 940
Merged
error: add SQLState#1080
rafiss merged 1 commit intolib:masterfrom
error: add SQLState#1080
rafiss merged 1 commit intolib:masterfrom
Conversation
Copy link
Contributor
drakkan
commented
May 6, 2022
drakkan
commented
SQLState is also implemented in pgx.
This change allows to get the SQL state without importing lib/pq, see
for example here:
to understand why it is useful
SQLState is also implemented in pgx. This change allow to get the SQL state without importing lib/pq, see for example here https://github.com/cockroachdb/cockroach-go/blob/e1659d1d3580897bce4cea1181724872d792ce53/crdb/tx.go#L232
drakkan referenced this pull request in siepkes/sftpgo
May 7, 2022pq recommend using pgx since pq itself is in maintenance mode. pgx offers support for things like client-side failover.
rafiss
merged commit
30d9faf
into
lib:master
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Comments