Skip to content

Commit

Permalink
fix: quote m2m table name fixes #649
Browse files Browse the repository at this point in the history
  • Loading branch information
vmihailenco committed Aug 16, 2022
1 parent 887135c commit 61a634e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion relation_join.go
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ func (j *relationJoin) m2mQuery(q *SelectQuery) *SelectQuery {
//nolint
var join []byte
join = append(join, "JOIN "...)
join = fmter.AppendQuery(join, string(j.Relation.M2MTable.Name))
join = fmter.AppendQuery(join, string(j.Relation.M2MTable.SQLName))
join = append(join, " AS "...)
join = append(join, j.Relation.M2MTable.SQLAlias...)
join = append(join, " ON ("...)
Expand Down

0 comments on commit 61a634e

Please sign in to comment.