From 9cccdfb0fdd54e4a254842e0f68cd41a33912776 Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Fri, 19 Dec 2008 23:02:45 +0000 Subject: removed the "create_execution_context()" method from dialects and replaced with a more succinct "dialect.execution_ctx_cls" member --- lib/sqlalchemy/engine/default.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'lib/sqlalchemy/engine/default.py') diff --git a/lib/sqlalchemy/engine/default.py b/lib/sqlalchemy/engine/default.py index 251cf8b2c..11fd43df5 100644 --- a/lib/sqlalchemy/engine/default.py +++ b/lib/sqlalchemy/engine/default.py @@ -59,9 +59,6 @@ class DefaultDialect(base.Dialect): raise exc.ArgumentError("Label length of %d is greater than this dialect's maximum identifier length of %d" % (label_length, self.max_identifier_length)) self.label_length = label_length - def create_execution_context(self, connection, **kwargs): - return DefaultExecutionContext(self, connection, **kwargs) - def type_descriptor(self, typeobj): """Provide a database-specific ``TypeEngine`` object, given the generic object which comes from the types module. @@ -367,3 +364,5 @@ class DefaultExecutionContext(base.ExecutionContext): self.postfetch_cols = self.compiled.postfetch self.prefetch_cols = self.compiled.prefetch + +DefaultDialect.execution_ctx_cls = DefaultExecutionContext \ No newline at end of file -- cgit v1.2.1