]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
added "recreate()" argument to connection pool classes
authorMike Bayer <mike_mp@zzzcomputing.com>
Tue, 17 Apr 2007 00:21:25 +0000 (00:21 +0000)
committerMike Bayer <mike_mp@zzzcomputing.com>
Tue, 17 Apr 2007 00:21:25 +0000 (00:21 +0000)
commitb81a0132a84a54559b7dbce075988dec62ed7da7
treee967111fa6de4c2c9b43338fb13c5bc06a5b23aa
parent86fef1e4593a6c25e83b2aca7577c62bec9fa2a9
added "recreate()" argument to connection pool classes
this method is called when the invalidate() occurs for a disconnect condition,
so that the entire pool is recreated, thereby avoiding repeat errors on
remaining connections in the pool.
dispose() called as well (also fixed up) but cant guarantee all connections closed.
CHANGES
lib/sqlalchemy/engine/base.py
lib/sqlalchemy/engine/default.py
lib/sqlalchemy/pool.py
test/engine/pool.py