summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/schema.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2012-10-31 14:30:47 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2012-10-31 14:30:47 -0400
commitd30ab8495c9e16f7cf599da02ac8e333cc620b54 (patch)
tree1f6cee48de9a8babcdcb6cd5e49ffc5d597a06d8 /lib/sqlalchemy/schema.py
parentf0a9d39634d214672ab5171c7b8178abf2cbea94 (diff)
downloadsqlalchemy-d30ab8495c9e16f7cf599da02ac8e333cc620b54.tar.gz
Fixed bug whereby the ".key" of a Column wasn't being
used when producing a "proxy" of the column against a selectable. This probably didn't occur in 0.7 since 0.7 doesn't respect the ".key" in a wider range of scenarios. [ticket:2597]
Diffstat (limited to 'lib/sqlalchemy/schema.py')
-rw-r--r--lib/sqlalchemy/schema.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sqlalchemy/schema.py b/lib/sqlalchemy/schema.py
index 44072cd12..6380cd86b 100644
--- a/lib/sqlalchemy/schema.py
+++ b/lib/sqlalchemy/schema.py
@@ -1145,7 +1145,7 @@ class Column(SchemaItem, expression.ColumnClause):
c.table = selectable
selectable._columns.add(c)
if selectable._is_clone_of is not None:
- c._is_clone_of = selectable._is_clone_of.columns[c.name]
+ c._is_clone_of = selectable._is_clone_of.columns[c.key]
if self.primary_key:
selectable.primary_key.add(c)
c.dispatch.after_parent_attach(c, selectable)