diff options
| author | Sebastian Bank <sebastian.bank@uni-leipzig.de> | 2015-03-07 11:18:07 +0100 |
|---|---|---|
| committer | Sebastian Bank <sebastian.bank@uni-leipzig.de> | 2015-03-07 11:18:07 +0100 |
| commit | 81d2b2f44f0af9cbe6652d162360c650b62632c0 (patch) | |
| tree | 7efc4f79cc2ff6415fc9c0581b6a93a2693f03e5 /lib/sqlalchemy/pool.py | |
| parent | 156f473de00024688404d73aea305cd4fc452638 (diff) | |
| parent | 0a1f720355f02d38da2a5a8444712dd7d199c713 (diff) | |
| download | sqlalchemy-81d2b2f44f0af9cbe6652d162360c650b62632c0.tar.gz | |
Merged zzzeek/sqlalchemy into master
Diffstat (limited to 'lib/sqlalchemy/pool.py')
| -rw-r--r-- | lib/sqlalchemy/pool.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/sqlalchemy/pool.py b/lib/sqlalchemy/pool.py index a174df784..25db5d5ba 100644 --- a/lib/sqlalchemy/pool.py +++ b/lib/sqlalchemy/pool.py @@ -230,6 +230,7 @@ class Pool(log.Identified): % reset_on_return) self.echo = echo + if _dispatch: self.dispatch._update(_dispatch, only_propagate=False) if _dialect: @@ -528,6 +529,7 @@ class _ConnectionRecord(object): return self.connection def __close(self): + self.finalize_callback.clear() self.__pool._close_connection(self.connection) def __connect(self): @@ -917,9 +919,9 @@ class QueuePool(Pool): on returning a connection. Defaults to 30. :param \**kw: Other keyword arguments including - :paramref:`.Pool.recycle`, :paramref:`.Pool.echo`, - :paramref:`.Pool.reset_on_return` and others are passed to the - :class:`.Pool` constructor. + :paramref:`.Pool.recycle`, :paramref:`.Pool.echo`, + :paramref:`.Pool.reset_on_return` and others are passed to the + :class:`.Pool` constructor. """ Pool.__init__(self, creator, **kw) |
