diff options
author | Alex Gaynor <alex.gaynor@gmail.com> | 2013-09-25 10:29:52 -0700 |
---|---|---|
committer | Alex Gaynor <alex.gaynor@gmail.com> | 2013-09-25 10:29:52 -0700 |
commit | 03671e9ee4c13f4d7e98ec4a5076fd9c9979e44d (patch) | |
tree | 8b56024ae1ef21d19d09763530beafb8b8d624ce /lib/sqlalchemy/sql/ddl.py | |
parent | 08a6a8b51916ab1d084a0070bbb07001cabb1c38 (diff) | |
download | sqlalchemy-pr/30.tar.gz |
Replace a big loop + dict lookup in Connection.execute() with a simple visitorpr/30
pattern
Diffstat (limited to 'lib/sqlalchemy/sql/ddl.py')
-rw-r--r-- | lib/sqlalchemy/sql/ddl.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/sqlalchemy/sql/ddl.py b/lib/sqlalchemy/sql/ddl.py index 2a81b3394..72ef07732 100644 --- a/lib/sqlalchemy/sql/ddl.py +++ b/lib/sqlalchemy/sql/ddl.py @@ -63,6 +63,9 @@ class DDLElement(Executable, _DDLCompiles): dialect = None callable_ = None + def _execute_on_connection(self, connection, multiparams, params): + return connection._execute_ddl(self, multiparams, params) + def execute(self, bind=None, target=None): """Execute this DDL immediately. |