summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/future/selectable.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/sqlalchemy/future/selectable.py')
-rw-r--r--lib/sqlalchemy/future/selectable.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/sqlalchemy/future/selectable.py b/lib/sqlalchemy/future/selectable.py
index 473242bf8..9d0ae7c89 100644
--- a/lib/sqlalchemy/future/selectable.py
+++ b/lib/sqlalchemy/future/selectable.py
@@ -124,6 +124,8 @@ class Select(_LegacySelect):
target = coercions.expect(
roles.JoinTargetRole, target, apply_propagate_attrs=self
)
+ if onclause is not None:
+ onclause = coercions.expect(roles.OnClauseRole, onclause)
self._setup_joins += (
(target, onclause, None, {"isouter": isouter, "full": full}),
)