Skip to content

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants