Closed drakkan closed 2 years ago
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 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