]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
added dispose() for StaticPool
authorMike Bayer <mike_mp@zzzcomputing.com>
Sun, 2 Mar 2008 17:44:17 +0000 (17:44 +0000)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sun, 2 Mar 2008 17:44:17 +0000 (17:44 +0000)
lib/sqlalchemy/pool.py

index aa30e2a2a0b3d36604c3e631d2b698c8c9cd3649..94d9127f0cd061fecd6c26f4e5d18b5a39178ba7 100644 (file)
@@ -660,6 +660,10 @@ class StaticPool(Pool):
     def status(self):
         return "StaticPool"
 
+    def dispose(self):
+        self._conn.close()
+        self._conn = None
+        
     def create_connection(self):
         return self._conn