]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
oops, removed pool debugging code
authorMike Bayer <mike_mp@zzzcomputing.com>
Tue, 24 Oct 2006 22:32:54 +0000 (22:32 +0000)
committerMike Bayer <mike_mp@zzzcomputing.com>
Tue, 24 Oct 2006 22:32:54 +0000 (22:32 +0000)
lib/sqlalchemy/pool.py

index cd58c103130f654d126487ea77f65a683600a242..d4b0d75d0b8a03d9e7ebb90c5cc5edbdbe840cac 100644 (file)
@@ -26,8 +26,6 @@ except:
 
 proxies = {}
 
-ERROR_ON_RETURN = False
-
 def manage(module, **params):
     """given a DBAPI2 module and pool management parameters, returns a proxy for the module
     that will automatically pool connections, creating new connection pools for each 
@@ -246,11 +244,6 @@ class _ConnectionFairy(object):
                 # damn mysql -- (todo look for NotSupportedError)
                 pass
         if self._connection_record is not None:
-            global ERROR_ON_RETURN
-            if ERROR_ON_RETURN:
-                ERROR_ON_RETURN=False
-                raise "hi"
-                
             if self.__pool.echo:
                 self.__pool.log("Connection %s being returned to pool" % repr(self.connection))
             self.__pool.return_conn(self)