From 92b81c341b2908dd2dde344e20f3d7e816f63e2c Mon Sep 17 00:00:00 2001 From: Vladimir Mihailenco Date: Tue, 12 Jul 2022 09:33:45 +0300 Subject: [PATCH] chore: pass args correctly --- query_raw.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/query_raw.go b/query_raw.go index 1c509f142..30ae77508 100644 --- a/query_raw.go +++ b/query_raw.go @@ -2,6 +2,7 @@ package bun import ( "context" + "github.com/uptrace/bun/schema" ) @@ -39,7 +40,7 @@ func (q *RawQuery) Scan(ctx context.Context, dest ...interface{}) error { } func (q *RawQuery) AppendQuery(fmter schema.Formatter, b []byte) ([]byte, error) { - return fmter.AppendQuery(b, q.query, q.args), nil + return fmter.AppendQuery(b, q.query, q.args...), nil } func (q *RawQuery) Operation() string {