2
0

Map io.EOF errors to io.ErrUnexpectedEOF

io.EOF is never expected during valid usage. In addition, database/sql
uses io.EOF as a sentinal value that all rows from a query have been
received.

See https://github.com/jackc/pgx/issues/662.
This commit is contained in:
Jack Christensen
2020-01-17 16:55:05 -06:00
parent eca1e51822
commit 595780be0f
4 changed files with 44 additions and 4 deletions
+1
View File
@@ -5,4 +5,5 @@ go 1.12
require (
github.com/jackc/chunkreader/v2 v2.0.0
github.com/jackc/pgio v1.0.0
github.com/stretchr/testify v1.4.0
)