Accumulate args when using Join() multiple times

This commit is contained in:
Victor Gaydov 2016-04-19 01:21:08 +03:00
parent 0f03658955
commit ce28ee9f19
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
}