Skip to content

Commit

Permalink
minor change to joins
Browse files Browse the repository at this point in the history
  • Loading branch information
clausnagel committed May 3, 2018
1 parent e5fb6fa commit 384e2a1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main/java/org/citydb/sqlbuilder/select/join/Join.java
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@ public JoinName getJoinName() {
}

public void setJoinName(JoinName name) {
this.name = name;
if (name != null)
this.name = name;
}

public void getInvolvedTables(Set<Table> tables) {
Expand All @@ -73,7 +74,7 @@ public void getInvolvedTables(Set<Table> tables) {

@Override
public String toString() {
return String.valueOf(getJoinName()) + " " + toColumn.getTable() + " on " + condition;
return name + " " + toColumn.getTable() + " on " + condition;
}

}

0 comments on commit 384e2a1

Please sign in to comment.