Merge pull request #378 from gavv/master
Accumulate args when using Join() multiple times
This commit is contained in:
commit
21d219c872
|
@ -1009,7 +1009,7 @@ func (statement *Statement) Join(joinOP string, tablename interface{}, condition
|
|||
|
||||
fmt.Fprintf(&buf, " ON %v", condition)
|
||||
statement.JoinStr = buf.String()
|
||||
statement.joinArgs = args
|
||||
statement.joinArgs = append(statement.joinArgs, args...)
|
||||
return statement
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue