summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/ansisql.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/sqlalchemy/ansisql.py')
-rw-r--r--lib/sqlalchemy/ansisql.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sqlalchemy/ansisql.py b/lib/sqlalchemy/ansisql.py
index 2a709e3b7..691106a71 100644
--- a/lib/sqlalchemy/ansisql.py
+++ b/lib/sqlalchemy/ansisql.py
@@ -284,7 +284,7 @@ class ANSICompiler(sql.Compiled):
def visit_join(self, join):
# TODO: ppl are going to want RIGHT, FULL OUTER and NATURAL joins.
righttext = self.get_from_text(join.right)
- if join.right.group_parenthesized():
+ if join.right._group_parenthesized():
righttext = "(" + righttext + ")"
if join.isouter:
self.froms[join] = (self.get_from_text(join.left) + " LEFT OUTER JOIN " + righttext +