Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions ibm_db_sa/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -470,11 +470,15 @@ def get_select_precolumns(self, select, **kwargs):
return ""

def visit_join(self, join, asfrom=False, **kwargs):
# NOTE: this is the same method as that used in mysql/base.py
# to render INNER JOIN
join_type = " INNER JOIN "
if join.full:
join_type = " FULL OUTER JOIN "
elif join.isouter:
join_type = " LEFT OUTER JOIN "

return ''.join(
(self.process(join.left, asfrom=True, **kwargs),
(join.isouter and " LEFT OUTER JOIN " or " INNER JOIN "),
join_type,
self.process(join.right, asfrom=True, **kwargs),
" ON ",
self.process(join.onclause, **kwargs)))
Expand Down