]> 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:30 +0000 (11:40 -0400)
commit5519852de8db28e21892956906e2bbad53e2509a
treeb16f4e9916219ec88f2e0d99c52307a001e043a3
parent0d5e8272e27c2fcdb13d51495f8ea9f55acf0d6b
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
(cherry picked from commit 96f1172812f858fead45cdc7874abac76f45b339)
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