Merge pull request #378 from gavv/master

Accumulate args when using Join() multiple times
This commit is contained in:
Lunny Xiao 2016-04-18 20:01:25 -05:00
commit 21d219c872
1 changed files with 1 additions and 1 deletions

View File

@ -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
}