error: add SQLState by drakkan · Pull Request #1080 · lib/pq

Skip to content

Navigation Menu

Sign in

Appearance settings

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Conversation

@drakkan

Copy link

Contributor

@drakkan drakkan commented

May 6, 2022

SQLState is also implemented in pgx.
This change allows 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

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, 2022
pq recommend using pgx since pq itself is in maintenance mode. pgx
offers support for things like client-side failover.

@rafiss rafiss merged commit 30d9faf into lib:master

May 11, 2022

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@drakkan @rafiss

Comments