summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/sql/elements.py
diff options
context:
space:
mode:
authormike bayer <mike_mp@zzzcomputing.com>2021-04-29 19:53:02 +0000
committerGerrit Code Review <gerrit@ci3.zzzcomputing.com>2021-04-29 19:53:02 +0000
commitdc5485b7ecdbe1cbed34fcb8d748fbe975aee140 (patch)
tree7f0456f166b53fecf881c6e214b69dc7db4944e3 /lib/sqlalchemy/sql/elements.py
parent28493bf4bc35a4802b57b02a8b389cec7b6dcbb6 (diff)
parentaba308868544b21bafa0b3435701ddc908654b0a (diff)
downloadsqlalchemy-dc5485b7ecdbe1cbed34fcb8d748fbe975aee140.tar.gz
Merge "Use non-subquery form for empty IN"
Diffstat (limited to 'lib/sqlalchemy/sql/elements.py')
-rw-r--r--lib/sqlalchemy/sql/elements.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/sqlalchemy/sql/elements.py b/lib/sqlalchemy/sql/elements.py
index 696f3b249..e27b97802 100644
--- a/lib/sqlalchemy/sql/elements.py
+++ b/lib/sqlalchemy/sql/elements.py
@@ -1411,7 +1411,17 @@ class BindParameter(roles.InElementRole, ColumnElement):
self.callable = callable_
self.isoutparam = isoutparam
self.required = required
+
+ # indicate an "expanding" parameter; the compiler sets this
+ # automatically in the compiler _render_in_expr_w_bindparam method
+ # for an IN expression
self.expanding = expanding
+
+ # this is another hint to help w/ expanding and is typically
+ # set in the compiler _render_in_expr_w_bindparam method for an
+ # IN expression
+ self.expand_op = None
+
self.literal_execute = literal_execute
if _is_crud:
self._is_crud = True