Skip to content

Commit

Permalink
patched tag link generation
Browse files Browse the repository at this point in the history
  • Loading branch information
adranwit committed Jul 10, 2024
1 parent 1ba1f98 commit a17e947
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/inference/tag.go
Original file line number Diff line number Diff line change
Expand Up @@ -157,8 +157,8 @@ func (t *Tags) buildRelation(spec *Spec, relation *Relation) {
keyColumn = ns + "." + keyColumn
}
joinTag = joinTag.Append(
tags.WithRelLink(parentColumn, relation.ParentField.Name, nil),
tags.WithRefLink(keyColumn, relation.KeyField.Name),
tags.WithRelLink(relation.ParentField.Name, parentColumn, nil),
tags.WithRefLink(relation.KeyField.Name, keyColumn),
)
sqlTag := TagValue{}
if rawSQL := strings.Trim(sqlparser.Stringify(join.With), " )("); rawSQL != "" {
Expand Down

0 comments on commit a17e947

Please sign in to comment.