1df45d758d
This patch fixes jackc/pgx#841. The meat of the fix lives in [a PR to the pgconn repo][1]. This change just checks for errors after executing a prepared statement and informs the underlying stmtcache about them so that it can properly clean up. We don't try to get fancy with retries or anything like that, just return the error and allow the application to handle it. I had to make [some][1] [changes][2] to to the jackc/pgconn package as well as this package. Fixes #841 [1]: https://github.com/jackc/pgconn/pull/56 [2]: https://github.com/jackc/pgconn/pull/55
22 lines
694 B
Modula-2
22 lines
694 B
Modula-2
module github.com/jackc/pgx/v4
|
|
|
|
go 1.12
|
|
|
|
require (
|
|
github.com/cockroachdb/apd v1.1.0
|
|
github.com/gofrs/uuid v3.2.0+incompatible
|
|
github.com/jackc/pgconn v1.7.3-0.20201111215259-cba610c24526
|
|
github.com/jackc/pgio v1.0.0
|
|
github.com/jackc/pgproto3/v2 v2.0.6
|
|
github.com/jackc/pgtype v1.6.1
|
|
github.com/jackc/puddle v1.1.2
|
|
github.com/mattn/go-colorable v0.1.6 // indirect
|
|
github.com/rs/zerolog v1.15.0
|
|
github.com/shopspring/decimal v0.0.0-20200227202807-02e2044944cc
|
|
github.com/sirupsen/logrus v1.4.2
|
|
github.com/stretchr/testify v1.5.1
|
|
go.uber.org/zap v1.10.0
|
|
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543
|
|
gopkg.in/inconshreveable/log15.v2 v2.0.0-20180818164646-67afb5ed74ec
|
|
)
|