]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
- keep working on fixing #3266, more cases, more tests
authorMike Bayer <mike_mp@zzzcomputing.com>
Wed, 10 Dec 2014 17:15:14 +0000 (12:15 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Wed, 10 Dec 2014 17:15:14 +0000 (12:15 -0500)
lib/sqlalchemy/engine/base.py

index 9a86103442876ba81427b172333de096d05c8362..918ee0e37c1ebefa8512a6b87e0c985b1acbe652 100644 (file)
@@ -1926,10 +1926,11 @@ class Engine(Connectable, log.Identified):
 
         """
 
-        return self._connection_cls(self,
-                                    self.pool.connect(),
-                                    close_with_result=close_with_result,
-                                    **kwargs)
+        return self._connection_cls(
+            self,
+            self._wrap_pool_connect(self.pool.connect, None),
+            close_with_result=close_with_result,
+            **kwargs)
 
     def table_names(self, schema=None, connection=None):
         """Return a list of all table names available in the database.