From ce28ee9f190b2ba8317bf3c091885eb9d58c80a7 Mon Sep 17 00:00:00 2001 From: Victor Gaydov Date: Tue, 19 Apr 2016 01:21:08 +0300 Subject: [PATCH] Accumulate args when using Join() multiple times --- statement.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/statement.go b/statement.go index be300048..2e84cc5c 100644 --- a/statement.go +++ b/statement.go @@ -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 }