]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
include nulls_first, nulls_last in order_by_label_element
authorMike Bayer <mike_mp@zzzcomputing.com>
Wed, 10 Jul 2024 14:32:44 +0000 (10:32 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Wed, 10 Jul 2024 15:40:24 +0000 (11:40 -0400)
commit96f1172812f858fead45cdc7874abac76f45b339
treead45862c37184ba074cc6a53ea68e0c79c3a3f34
parent772ab0befefe0dad99db22e21ed5f37afd1a1928
include nulls_first, nulls_last in order_by_label_element

Fixed bug where the :meth:`.Operators.nulls_first()` and
:meth:`.Operators.nulls_last()` modifiers would not be treated the same way
as :meth:`.Operators.desc()` and :meth:`.Operators.asc()` when determining
if an ORDER BY should be against a label name already in the statement. All
four modifiers are now treated the same within ORDER BY.

Fixes: #11592
Change-Id: I1de1aff679c56af1abfdfd07f9bcbc45ecc5a8cc
doc/build/changelog/unreleased_20/11592.rst [new file with mode: 0644]
lib/sqlalchemy/sql/elements.py
lib/sqlalchemy/sql/operators.py
test/sql/test_compiler.py