diff options
| author | Mike Bayer <mike_mp@zzzcomputing.com> | 2009-12-03 02:34:47 +0000 |
|---|---|---|
| committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2009-12-03 02:34:47 +0000 |
| commit | 648e0eb70c8f4e3db3b632409924a58d76d25008 (patch) | |
| tree | 17fa0d5cc1600d588fb4bb19546ee520698aaaae /lib | |
| parent | 72859dd13b5ade9f9204ef1c37aafcbf9655085b (diff) | |
| download | sqlalchemy-648e0eb70c8f4e3db3b632409924a58d76d25008.tar.gz | |
- The cursor associated with connection pool connections
(i.e. _CursorFairy) now proxies `__iter__()` to the
underlying cursor correctly. [ticket:1632]
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/sqlalchemy/pool.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/sqlalchemy/pool.py b/lib/sqlalchemy/pool.py index a67676143..43b8623bc 100644 --- a/lib/sqlalchemy/pool.py +++ b/lib/sqlalchemy/pool.py @@ -440,7 +440,10 @@ class _CursorFairy(object): def invalidate(self, e=None): self._parent.invalidate(e=e) - + + def __iter__(self): + return iter(self.cursor) + def close(self): try: self.cursor.close() |
