]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
- A refinement to the logic which adds columns to the resulting SQL when
authorMike Bayer <mike_mp@zzzcomputing.com>
Tue, 9 Feb 2016 22:49:38 +0000 (17:49 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Tue, 9 Feb 2016 22:49:38 +0000 (17:49 -0500)
commitff3be95620b6505943b2d7e4688abc29dca3e493
tree1d90206b004c30bc296d709d5d169bf8a1f2a16a
parent7d2bed69abb6ab545cfa5ca967141338387417c2
- A refinement to the logic which adds columns to the resulting SQL when
:meth:`.Query.distinct` is combined with :meth:`.Query.order_by` such
that columns which are already present will not be added
a second time, even if they are labeled with a different name.
Regardless of this change, the extra columns added to the SQL have
never been returned in the final result, so this change only impacts
the string form of the statement as well as its behavior when used in
a Core execution context.   Additionally, columns are no longer added
when the DISTINCT ON format is used, provided the query is not
wrapped inside a subquery due to joined eager loading.
fixes #3641
doc/build/changelog/changelog_11.rst
doc/build/changelog/migration_11.rst
lib/sqlalchemy/orm/query.py
lib/sqlalchemy/sql/util.py
test/orm/test_query.py