mirror of
https://github.com/jackc/pgx.git
synced 2025-05-31 11:42:24 +00:00
If a connection is in a transaction or has an open result set then close the connection when returning it to database/sql. When next database/sql attempts to use it the connection will return driver.ErrBadConn and database/sql will remove it from the pool. fixes #673