From 1c603aa888665e05d6c321aff727297db06a49e5 Mon Sep 17 00:00:00 2001 From: M <26060677+0x221A@users.noreply.github.com> Date: Fri, 8 Dec 2023 18:20:39 +0700 Subject: [PATCH] fix the return type of `SQL()` method --- pgstmt/result.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pgstmt/result.go b/pgstmt/result.go index 6e69e4f..bca9a01 100644 --- a/pgstmt/result.go +++ b/pgstmt/result.go @@ -17,7 +17,7 @@ func newResult(query string, args []any) *Result { return &Result{query, args} } -func (r *Result) SQL() (query string, args any) { +func (r *Result) SQL() (query string, args []any) { return r.query, r.args }