]> 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:25:33 +0000 (22:25 +0200)
commit346e7ea0d02eb02e0a897692d0f09d7545ebb1b9
tree8cfbd348faf412bd2f83cd0fec0a897f30e996fd
parent754804635bc922c20d0b0075e0ed2da0add38742
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
doc/build/changelog/unreleased_20/11426.rst [new file with mode: 0644]
lib/sqlalchemy/sql/elements.py
test/sql/test_functions.py