diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2013-05-26 20:02:17 -0400 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2013-05-26 20:02:17 -0400 |
commit | 2be39d5342746ea08ec5f7dcb73b6177b004de54 (patch) | |
tree | c6a82710b689537a99a35c82267ab81016436cbd /lib/sqlalchemy/engine/base.py | |
parent | 2e8816c88f4746dbf34f1815696d083ba2e2d738 (diff) | |
download | sqlalchemy-2be39d5342746ea08ec5f7dcb73b6177b004de54.tar.gz |
get profile 1a back down to 5100 calls, that one was 10% greater due to this
Diffstat (limited to 'lib/sqlalchemy/engine/base.py')
-rw-r--r-- | lib/sqlalchemy/engine/base.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/sqlalchemy/engine/base.py b/lib/sqlalchemy/engine/base.py index c2ba0922b..2d9f3af94 100644 --- a/lib/sqlalchemy/engine/base.py +++ b/lib/sqlalchemy/engine/base.py @@ -734,9 +734,9 @@ class Connection(Connectable): distilled_params = _distill_params(multiparams, params) if distilled_params: - # need list() + keys() here to suit - # both dict and RowProxy - keys = list(distilled_params[0].keys()) + # note this is usually dict but we support RowProxy + # as well; but dict.keys() as an iterator is OK + keys = distilled_params[0].keys() else: keys = [] |