Skip to content

Commit

Permalink
chore: pass args correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
vmihailenco committed Jul 12, 2022
1 parent 5182f57 commit 92b81c3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion query_raw.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package bun

import (
"context"

"github.com/uptrace/bun/schema"
)

Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit 92b81c3

Please sign in to comment.