]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Make `FunctionFilter.filter` generative
authorFederico Caselli <cfederico87@gmail.com>
Wed, 29 May 2024 19:39:08 +0000 (21:39 +0200)
committerFederico Caselli <cfederico87@gmail.com>
Thu, 30 May 2024 20:26:02 +0000 (22:26 +0200)
commit13f87c2bdc2ef95cfc12f46b736fa0c4af26d337
treef4a74784e5e2c5b9193cf15688265f246e194b4d
parent62c242b78dee306738a2cd22f548679e9818a1ac
Make `FunctionFilter.filter` generative

Fixed bug in :meth:`_sql.FunctionFilter.filter` that would mutate
the existing function in-place. It now behaves like the rest of the
SQLAlchemy API, returning a new instance instead of mutating the
original one.

Fixes: #11426
Change-Id: I46ffebaed82426cfb1623db066686cfb911055a1
(cherry picked from commit fe2ced9e79b9640f3ca135f8d3782dd41ca16782)
doc/build/changelog/unreleased_20/11426.rst [new file with mode: 0644]
lib/sqlalchemy/sql/elements.py
test/sql/test_functions.py