]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
qualify compile_state updates for non-current entities
authorMike Bayer <mike_mp@zzzcomputing.com>
Mon, 23 Aug 2021 15:24:48 +0000 (11:24 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 23 Aug 2021 15:29:27 +0000 (11:29 -0400)
commit21f9a94dbf0f2bdaa12bf23714e8f33b8f3f4125
tree8a84a715c26893dbc73dcd80b03de815cc9b744f
parentb7378da077367c8eaa877362322fe08e3de59f0f
qualify compile_state updates for non-current entities

Fixed issue in recently repaired ``Query.with_entities()`` method where the
flag that determines automatic uniquing for legacy ORM ``Query`` objects
only would be set to ``True`` inappropriately in cases where the
``with_entities()`` call would be setting the ``Query`` to return
column-only rows, which are not uniqued.

Fixes: #6924
Change-Id: I81120823914c989bb7a4d13ef2ec08809d8e5a4d
doc/build/changelog/unreleased_14/6924.rst [new file with mode: 0644]
lib/sqlalchemy/orm/context.py
test/orm/test_froms.py