summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/sql/elements.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/sqlalchemy/sql/elements.py')
-rw-r--r--lib/sqlalchemy/sql/elements.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/sqlalchemy/sql/elements.py b/lib/sqlalchemy/sql/elements.py
index 49bb08644..d8b5a1626 100644
--- a/lib/sqlalchemy/sql/elements.py
+++ b/lib/sqlalchemy/sql/elements.py
@@ -282,9 +282,13 @@ class ClauseElement(
d.pop("_generate_cache_key", None)
return d
- def _execute_on_connection(self, connection, multiparams, params):
+ def _execute_on_connection(
+ self, connection, multiparams, params, execution_options
+ ):
if self.supports_execution:
- return connection._execute_clauseelement(self, multiparams, params)
+ return connection._execute_clauseelement(
+ self, multiparams, params, execution_options
+ )
else:
raise exc.ObjectNotExecutableError(self)