Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Properly discover a connection is closed in postgresql_adapter
PQstatus doesn't properly test if future operations will succeed. A PQping function is added to libpq in PostgreSQL 9.1, but if we rely on it, everyone on earlier versions of Postgres is out of luck, and the pg gem wouldn't have the 'fix' until the next release. Thanks to @cbrecabarren and @ged for handling all the dirty details. Closes #3392.
- Loading branch information
4dacac3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why
@connection.query
instead of@connection.async_exec
?