14f1f2aa01
database/sql/driver.Driver implementations can be nested, with each layer adding additional functionality. If pgx/stdlib.Driver is wrapped in another driver.Driver implementation, AcquireConn will error, detecting that the *sql.DB's driver is not (directly) pgx.Driver. It looks like it should be possible to support the current functionality without requiring that the top-level Driver be pgx/stdlib.Driver, but it requires using a global map of fakeTxConns instead of a per-Driver map of fakeTxConns. Is this reasonable?