Commit Graph

18 Commits

Author SHA1 Message Date
kennethreitz ce83a4d49c Merge pull request #29 from j00bar/patch-1
Use psycopg2 attr to test connection usability
2018-01-02 10:03:30 -05:00
Josh Smeaton 716a8471ca Added compatability for Django >= 1.9 2017-01-25 11:49:03 +11:00
Joshua "jag" Ginsberg 4035603eb2 Use psycopg2 attr to test connection usability
Fixes #24
2016-03-11 13:53:31 -05:00
Brant Steen beea767be0 removing things that are part of django 2014-06-28 15:16:30 -04:00
Brant Steen eb97a1864b Allow auto-committing 2014-06-28 12:41:35 -04:00
Brant Steen 4f4f99dff3 Just following suit, as found in backends.postgresql_psycopg2.base 2014-06-24 15:37:36 -04:00
Brant Steen 354d25fea7 Removing what appears to be legacy cursor stuff 2014-06-24 15:04:23 -04:00
Kenneth Reitz 3f80bb7519 Merge pull request #14 from Jonty/fix_commit_rollback
Handle rollback/commit with failed connection
2013-07-02 13:22:21 -07:00
Jonty Wareing 5de1c82c31 Handle rollback/commit with failed connection
If a rollback or commit is attempted after the connection has failed
Django's BaseDatabaseWrapper does not know to check the validity of the
database connection and may fail due to the connection already being
closed. This is especially a problem when django is attempting to
automatically roll back transactions at the end of a request that has
already failed due to a database error and will result in the default
"Server Error" page being displayed as django cannot handle the error.
2013-07-02 19:30:29 +00:00
Jonty Wareing a156ba98e6 Correctly invalidate connections on failure
_cursor does not check if the connection is still valid, meaning that
once a connection has been marked as invalid it will attempt to get an
sqlalchemy cursor on a broken connection and throw an exception. This
commit causes the connection to be validated when using the cursor,
triggering a new connection to be fetched from the pool if the previous
one has been marked as dead.
2013-07-02 18:34:42 +00:00
Carl Meyer 2cd75849e6 Ensure test db conns are closed before dropping it. 2012-11-15 15:40:45 -07:00
Filip Wasilewski 6ae41209dd Invalidate broken connections 2012-10-24 23:52:14 +02:00
Kenneth Reitz c88a233979 cleanup 2012-09-27 20:26:42 -04:00
Kenneth Reitz f04ad1ea71 v0.2.1 2012-09-27 20:23:53 -04:00
Kenneth Reitz b388e538be v0.2.0 2012-09-27 20:20:57 -04:00
Kenneth Reitz 9bb889d82b __init__ 2012-09-27 20:18:08 -04:00
Kenneth Reitz 0fd7bd0e4a DATABASE_POOL_ARGS
Closes #1
2012-09-27 20:02:34 -04:00
Kenneth Reitz 234516bd14 readme 2012-09-27 19:20:39 -04:00