]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Use label reference coercion for select() distinct keyword argument
authorMike Bayer <mike_mp@zzzcomputing.com>
Fri, 6 Dec 2019 16:38:55 +0000 (11:38 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Fri, 6 Dec 2019 16:41:09 +0000 (11:41 -0500)
commit798c6f36ffeb87b396a79b5c61c67af7c65bed1d
treee88b235f7e68bd131e715ca7154f34aeee40ce60
parent500625103b4c0b7aa2d80a716818fb5e950841a8
Use label reference coercion for select() distinct keyword argument

Fixed bug where "distinct" keyword passed to :func:`.select` would not
treat a string value as a "label reference" in the same way that the
:meth:`.select.distinct` does; it would instead raise unconditionally. This
keyword argument and the others passed to :func:`.select` will ultimately
be deprecated for SQLAlchemy 2.0.

Fixes: #5028
Change-Id: Id36cfe477ed836c3248824ce1b81d0016dbe99f4
(cherry picked from commit 926952c4afe0b2e16c4a74f05958bded7b932760)
doc/build/changelog/unreleased_13/5028.rst [new file with mode: 0644]
lib/sqlalchemy/sql/selectable.py
test/sql/test_text.py