From: Mike Bayer Date: Wed, 10 Dec 2014 17:15:14 +0000 (-0500) Subject: - keep working on fixing #3266, more cases, more tests X-Git-Tag: rel_1_0_0b1~175 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=347db81aea9bfe301a9fe1fade644ad099545f3e;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git - keep working on fixing #3266, more cases, more tests --- diff --git a/lib/sqlalchemy/engine/base.py b/lib/sqlalchemy/engine/base.py index 9a86103442..918ee0e37c 100644 --- a/lib/sqlalchemy/engine/base.py +++ b/lib/sqlalchemy/engine/base.py @@ -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.