]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
ensure we unwrap desc() /label() all the way w/ order by
authorMike Bayer <mike_mp@zzzcomputing.com>
Tue, 7 Jul 2020 15:26:39 +0000 (11:26 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Tue, 7 Jul 2020 16:39:13 +0000 (12:39 -0400)
commit6eea9ca437084feae6a7b00276547e70ef6b40ad
treee8b056017bcf71097b79cd28c380008403cb6054
parentf97691e2a7a75657b6ef0d02d814f22f219fd780
ensure we unwrap desc() /label() all the way w/ order by

The deprecated logic to move order_by expressions
up into the columns clause needed adjustment to accommodate
for a more deeply-wrapped structure when desc() + label()
 are combined in an order by column.  This structure
now comes from coercions in 1.4.  it's not clear to me
at the moment why it's different from 1.3 but
this shouldn't really matter.

Fixes: #5443
Change-Id: If909a86f715992318d7aa283603197f7711f1d3b
lib/sqlalchemy/sql/util.py
test/orm/test_deprecations.py
test/sql/test_utils.py