fix stmtcache invalidation
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
This commit is contained in:
@@ -5,7 +5,7 @@ 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.2
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user