summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/sql/selectable.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2014-03-28 16:41:08 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2014-03-28 16:41:08 -0400
commit9c731b2ebf4909d319bf7ce44c4c5e895723afa6 (patch)
tree923d3c5351290dc9c2ee185056f29e3f0984ff96 /lib/sqlalchemy/sql/selectable.py
parenta04fb820289d10b4f340810e23242b4025e7c195 (diff)
downloadsqlalchemy-9c731b2ebf4909d319bf7ce44c4c5e895723afa6.tar.gz
- add further coverage for join_condition to make sure we get this case where
there are multiple, equivalent foreign keys
Diffstat (limited to 'lib/sqlalchemy/sql/selectable.py')
-rw-r--r--lib/sqlalchemy/sql/selectable.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sqlalchemy/sql/selectable.py b/lib/sqlalchemy/sql/selectable.py
index ce48d4c4b..f64a70ec8 100644
--- a/lib/sqlalchemy/sql/selectable.py
+++ b/lib/sqlalchemy/sql/selectable.py
@@ -740,7 +740,7 @@ class Join(FromClause):
if len(constraints) > 1:
dedupe = set(tuple(crit) for crit in constraints.values())
if len(dedupe) == 1:
- key = constraints.keys()[0]
+ key = list(constraints)[0]
constraints = {key: constraints[key]}
if len(constraints) != 1: