diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2010-11-13 15:53:32 -0500 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2010-11-13 15:53:32 -0500 |
commit | 6d630990dd35dad35609171eb003a0f1ef5b945d (patch) | |
tree | 080b3b7a7b4e7a25ec1a66612eec22cbd6049cc7 /lib/sqlalchemy/engine/base.py | |
parent | 8303afc9c002bade1dd2736a26f302475da9c398 (diff) | |
parent | af4285e6adf2a052ce985f9d3d97cc89778fca96 (diff) | |
download | sqlalchemy-6d630990dd35dad35609171eb003a0f1ef5b945d.tar.gz |
merge tip
Diffstat (limited to 'lib/sqlalchemy/engine/base.py')
-rw-r--r-- | lib/sqlalchemy/engine/base.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/sqlalchemy/engine/base.py b/lib/sqlalchemy/engine/base.py index 9d80af7a7..326c33f2d 100644 --- a/lib/sqlalchemy/engine/base.py +++ b/lib/sqlalchemy/engine/base.py @@ -2142,6 +2142,14 @@ class RowProxy(BaseRowProxy): def itervalues(self): return iter(self) +try: + # Register RowProxy with Sequence, + # so sequence protocol is implemented + from collections import Sequence + Sequence.register(RowProxy) +except ImportError: + pass + class ResultMetaData(object): """Handle cursor.description, applying additional info from an execution |