summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/sql/elements.py
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2013-09-25 10:29:52 -0700
committerAlex Gaynor <alex.gaynor@gmail.com>2013-09-25 10:29:52 -0700
commit03671e9ee4c13f4d7e98ec4a5076fd9c9979e44d (patch)
tree8b56024ae1ef21d19d09763530beafb8b8d624ce /lib/sqlalchemy/sql/elements.py
parent08a6a8b51916ab1d084a0070bbb07001cabb1c38 (diff)
downloadsqlalchemy-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/elements.py')
-rw-r--r--lib/sqlalchemy/sql/elements.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/sqlalchemy/sql/elements.py b/lib/sqlalchemy/sql/elements.py
index 92cbc3653..ea2132e67 100644
--- a/lib/sqlalchemy/sql/elements.py
+++ b/lib/sqlalchemy/sql/elements.py
@@ -292,6 +292,9 @@ class ClauseElement(Visitable):
# self
return self
+ def _execute_on_connection(self, connection, multiparams, params):
+ return connection._execute_clauseelement(self, multiparams, params)
+
def unique_params(self, *optionaldict, **kwargs):
"""Return a copy with :func:`bindparam()` elements replaced.