summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/sql/functions.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2021-12-01 10:53:16 -0500
committerMike Bayer <mike_mp@zzzcomputing.com>2021-12-02 14:51:12 -0500
commitf70b321661fa5b3fcf8672fcbcbe63870a77129c (patch)
tree92c5dd66c89f1cf95ff2e31104be2708ff42ba61 /lib/sqlalchemy/sql/functions.py
parent55e0497b080bf7f5159faa5abcb341269ebfdc7f (diff)
downloadsqlalchemy-f70b321661fa5b3fcf8672fcbcbe63870a77129c.tar.gz
Removals: MetaData.bind, Table.bind, all other .bind
Change-Id: I1ef2eb2018f4b68825fe40a2a8d99084cf217b35 References: #7257
Diffstat (limited to 'lib/sqlalchemy/sql/functions.py')
-rw-r--r--lib/sqlalchemy/sql/functions.py18
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)