diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2010-12-13 00:15:32 -0500 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2010-12-13 00:15:32 -0500 |
commit | 86e8e7c558b296018613ed979012b2aca493ffbb (patch) | |
tree | 62340b7d477c59d9ba7c2c2cad488652176188d8 /lib/sqlalchemy/engine/base.py | |
parent | 1125a4b8b1a7b41111396b5b58887047a847b59e (diff) | |
download | sqlalchemy-86e8e7c558b296018613ed979012b2aca493ffbb.tar.gz |
- why type.dialect_impl(dialect).bind_processor(dialect), caching just the impl?
just call type._cached_bind_processor(dialect), cache the impl *and* the processor function.
same for result sets.
- use plain dict + update for defaultexecutioncontext.execution_options
Diffstat (limited to 'lib/sqlalchemy/engine/base.py')
-rw-r--r-- | lib/sqlalchemy/engine/base.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/sqlalchemy/engine/base.py b/lib/sqlalchemy/engine/base.py index 00aaca01e..f3f32f833 100644 --- a/lib/sqlalchemy/engine/base.py +++ b/lib/sqlalchemy/engine/base.py @@ -701,7 +701,7 @@ class Compiled(object): """Return the string text of the generated SQL or DDL.""" return self.string or '' - + def construct_params(self, params=None): """Return the bind params for this compiled object. @@ -2221,8 +2221,7 @@ class ResultMetaData(object): name, obj, type_ = \ colname, None, typemap.get(coltype, types.NULLTYPE) - processor = type_.dialect_impl(dialect).\ - result_processor(dialect, coltype) + processor = type_._cached_result_processor(dialect, coltype) processors.append(processor) rec = (processor, i) |