diff options
author | mike bayer <mike_mp@zzzcomputing.com> | 2021-12-03 15:35:13 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@ci3.zzzcomputing.com> | 2021-12-03 15:35:13 +0000 |
commit | e88dc004e6bcd1418cb8eb811d0aa580c2a44b8f (patch) | |
tree | c0ce0a17b6a85075c30e10622d2262596870e9ba /lib/sqlalchemy/sql/functions.py | |
parent | 4399dbee1b07494d819c7a89a30a706561fe6941 (diff) | |
parent | f70b321661fa5b3fcf8672fcbcbe63870a77129c (diff) | |
download | sqlalchemy-e88dc004e6bcd1418cb8eb811d0aa580c2a44b8f.tar.gz |
Merge "Removals: MetaData.bind, Table.bind, all other .bind" into main
Diffstat (limited to 'lib/sqlalchemy/sql/functions.py')
-rw-r--r-- | lib/sqlalchemy/sql/functions.py | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/lib/sqlalchemy/sql/functions.py b/lib/sqlalchemy/sql/functions.py index 901a3a77c..fff2defe0 100644 --- a/lib/sqlalchemy/sql/functions.py +++ b/lib/sqlalchemy/sql/functions.py @@ -844,13 +844,6 @@ class Function(FunctionElement): """ - @util.deprecated_params( - bind=( - "2.0", - "The :paramref:`_sql.text.bind` argument is deprecated and " - "will be removed in SQLAlchemy 2.0.", - ), - ) def __init__(self, name, *clauses, **kw): """Construct a :class:`.Function`. @@ -861,19 +854,10 @@ class Function(FunctionElement): self.packagenames = kw.pop("packagenames", None) or () self.name = name - self._bind = self._get_bind(kw) self.type = sqltypes.to_instance(kw.get("type_", None)) FunctionElement.__init__(self, *clauses, **kw) - def _get_bind(self, kw): - if "bind" in kw: - util.warn_deprecated_20( - "The Function.bind argument is deprecated and " - "will be removed in SQLAlchemy 2.0.", - ) - return kw["bind"] - def _bind_param(self, operator, obj, type_=None, **kw): return BindParameter( self.name, @@ -1014,7 +998,6 @@ class GenericFunction(Function, metaclass=_GenericMeta): ] self._has_args = self._has_args or bool(parsed_args) self.packagenames = () - self._bind = self._get_bind(kwargs) self.clause_expr = ClauseList( operator=operators.comma_op, group_contents=True, *parsed_args ).self_group() @@ -1048,7 +1031,6 @@ class next_value(GenericFunction): assert isinstance( seq, schema.Sequence ), "next_value() accepts a Sequence object as input." - self._bind = self._get_bind(kw) self.sequence = seq self.type = sqltypes.to_instance( seq.data_type or getattr(self, "type", None) |