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/schema.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/schema.py')
-rw-r--r-- | lib/sqlalchemy/sql/schema.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/sqlalchemy/sql/schema.py b/lib/sqlalchemy/sql/schema.py index b190c3874..35bab8e9d 100644 --- a/lib/sqlalchemy/sql/schema.py +++ b/lib/sqlalchemy/sql/schema.py @@ -68,6 +68,9 @@ class SchemaItem(SchemaEventTarget, visitors.Visitable): __visit_name__ = 'schema_item' + def _execute_on_connection(self, connection, multiparams, params): + return connection._execute_default(self, multiparams, params) + def _init_items(self, *args): """Initialize the list of child items for this SchemaItem.""" |