diff options
| author | Mike Bayer <mike_mp@zzzcomputing.com> | 2019-07-01 22:33:26 -0400 |
|---|---|---|
| committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2019-07-02 09:57:20 -0400 |
| commit | 6636cd9d256ccbad651eba6553ec46391380cc93 (patch) | |
| tree | 156326031c15adc3f09f885194d230a2039a74a4 /lib/sqlalchemy/sql/selectable.py | |
| parent | 3b60ccaed4844d25617221c853b3e46a78fd7974 (diff) | |
| download | sqlalchemy-6636cd9d256ccbad651eba6553ec46391380cc93.tar.gz | |
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
Diffstat (limited to 'lib/sqlalchemy/sql/selectable.py')
| -rw-r--r-- | lib/sqlalchemy/sql/selectable.py | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/sqlalchemy/sql/selectable.py b/lib/sqlalchemy/sql/selectable.py index e38de66e0..2c898e835 100644 --- a/lib/sqlalchemy/sql/selectable.py +++ b/lib/sqlalchemy/sql/selectable.py @@ -2759,7 +2759,6 @@ class CompoundSelect(GenerativeSelect): # to how low in the list of select()s the column occurs, so # that the corresponding_column() operation can resolve # conflicts - proxy._proxies = [ c._annotate({"weight": i + 1}) for (i, c) in enumerate(cols) ] |
