2
0

Tag errors if no bytes sent to server

This commit is contained in:
Jack Christensen
2019-04-20 16:48:24 -05:00
parent 0f8e1d30e2
commit 7e0022ef6b
3 changed files with 59 additions and 33 deletions
+4
View File
@@ -15,6 +15,10 @@ var ErrTLSRefused = errors.New("server refused TLS connection")
// action is attempted.
var ErrConnBusy = errors.New("conn is busy")
// ErrNoBytesSent is used to annotate an error that occurred without sending any bytes to the server. This can be used
// to implement safe retry logic. ErrNoBytesSent will never occur alone. It will always be wrapped by another error.
var ErrNoBytesSent = errors.New("no bytes sent to server")
// PgError represents an error reported by the PostgreSQL server. See
// http://www.postgresql.org/docs/11/static/protocol-error-fields.html for
// detailed field description.