Skip to content

Commit

Permalink
Fixed right join.
Browse files Browse the repository at this point in the history
  • Loading branch information
onyxfish committed Apr 16, 2011
1 parent 1fffe59 commit f302e0b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion csvjoin
Expand Up @@ -53,7 +53,10 @@ def main(args):
# Right outer join
jointab = tables[-1]

for i, t in enumerate(tables[:-1].reverse()):
remaining_tables = tables[:-1]
remaining_tables.reverse()

for i, t in enumerate(remaining_tables):
jointab = join.right_outer_join(t, join_column_names[-(i + 2)], jointab, join_column_names[-1])
elif args.outer_join:
# Full outer join
Expand Down

0 comments on commit f302e0b

Please sign in to comment.