]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Clear proxy_set cache when creating an annotated column
authorMike Bayer <mike_mp@zzzcomputing.com>
Tue, 2 Jul 2019 02:33:26 +0000 (22:33 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Tue, 2 Jul 2019 13:58:50 +0000 (09:58 -0400)
commit4a941414b7bcd56f7d7426c44ddac054d3d4d734
tree1e98070d9fffd521599f376020c552b92b537d50
parente07cc75b9793575fd8e3460c3d230c8844a78b1f
Clear proxy_set cache when creating an annotated column

Fixed an unlikely issue where the "corresponding column" routine for unions
and other :class:`.CompoundSelect` objects could return the wrong column in
some overlapping column situtations, thus potentially impacting some ORM
operations when set operations are in use, if the underlying
:func:`.select` constructs were used previously in other similar kinds of
routines, due to a cached value not being cleared.

Fixes: #4747
Change-Id: I7fb134cac3604f8fe62e220fb24a0945d0a1c56f
(cherry picked from commit 6636cd9d256ccbad651eba6553ec46391380cc93)
doc/build/changelog/unreleased_13/4747.rst [new file with mode: 0644]
lib/sqlalchemy/sql/elements.py
lib/sqlalchemy/sql/schema.py
lib/sqlalchemy/sql/selectable.py
test/sql/test_selectable.py