summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/sql/schema.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2019-07-01 22:33:26 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2019-07-02 09:57:20 -0400
commit6636cd9d256ccbad651eba6553ec46391380cc93 (patch)
tree156326031c15adc3f09f885194d230a2039a74a4 /lib/sqlalchemy/sql/schema.py
parent3b60ccaed4844d25617221c853b3e46a78fd7974 (diff)
downloadsqlalchemy-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/schema.py')
-rw-r--r--lib/sqlalchemy/sql/schema.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sqlalchemy/sql/schema.py b/lib/sqlalchemy/sql/schema.py
index 62ff25a64..d39bc9832 100644
--- a/lib/sqlalchemy/sql/schema.py
+++ b/lib/sqlalchemy/sql/schema.py
@@ -1927,7 +1927,7 @@ class ForeignKey(DialectKWArgs, SchemaItem):
parenttable = self.parent.table
- # assertion, can be commented out.
+ # assertion
# basically Column._make_proxy() sends the actual
# target Column to the ForeignKey object, so the
# string resolution here is never called.