]> 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:57:20 +0000 (09:57 -0400)
commit6636cd9d256ccbad651eba6553ec46391380cc93
tree156326031c15adc3f09f885194d230a2039a74a4
parent3b60ccaed4844d25617221c853b3e46a78fd7974
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
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