summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy
diff options
context:
space:
mode:
authormike bayer <mike_mp@zzzcomputing.com>2021-02-11 23:29:39 +0000
committerGerrit Code Review <gerrit@ci3.zzzcomputing.com>2021-02-11 23:29:39 +0000
commit88b881f12c3a4db3f7f8b58b95c5dcec16ab893e (patch)
tree44eb201c1045ba2c4e4240d406a77ddf9bb50eb5 /lib/sqlalchemy
parentdd1ba9b552305ac17aa1bdf3847a791e438e0771 (diff)
parent05f34fc29c9ce6ad1603d1538405f18f08c42df2 (diff)
downloadsqlalchemy-88b881f12c3a4db3f7f8b58b95c5dcec16ab893e.tar.gz
Merge "test Function(?:Element)._bind_param() with in_()"
Diffstat (limited to 'lib/sqlalchemy')
-rw-r--r--lib/sqlalchemy/sql/functions.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/sqlalchemy/sql/functions.py b/lib/sqlalchemy/sql/functions.py
index 78f7ead2e..641715327 100644
--- a/lib/sqlalchemy/sql/functions.py
+++ b/lib/sqlalchemy/sql/functions.py
@@ -595,7 +595,7 @@ class FunctionElement(Executable, ColumnElement, FromClause, Generative):
"""
return self.select().execute()
- def _bind_param(self, operator, obj, type_=None):
+ def _bind_param(self, operator, obj, type_=None, **kw):
return BindParameter(
None,
obj,
@@ -603,6 +603,7 @@ class FunctionElement(Executable, ColumnElement, FromClause, Generative):
_compared_to_type=self.type,
unique=True,
type_=type_,
+ **kw
)
def self_group(self, against=None):
@@ -887,7 +888,7 @@ class Function(FunctionElement):
)
return kw["bind"]
- def _bind_param(self, operator, obj, type_=None):
+ def _bind_param(self, operator, obj, type_=None, **kw):
return BindParameter(
self.name,
obj,
@@ -895,6 +896,7 @@ class Function(FunctionElement):
_compared_to_type=self.type,
type_=type_,
unique=True,
+ **kw
)