From 1e34c6c3a3d0bfae557327b1763be2c0b8a21767 Mon Sep 17 00:00:00 2001 From: jk Date: Sun, 22 Oct 2023 16:03:11 +0800 Subject: [PATCH] =?UTF-8?q?ExecuteSqlToResult=20=E8=B0=83=E6=95=B4?= =?UTF-8?q?=E5=85=A5=E5=8F=82=E6=94=B9=E4=B8=BA=E9=9D=9E=E6=8C=87=E9=92=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internalContext.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internalContext.go b/internalContext.go index 6bcb9c3..d7eadaa 100644 --- a/internalContext.go +++ b/internalContext.go @@ -119,5 +119,5 @@ func (receiver *internalContext) ExecuteSql(sql string, values ...any) (int64, e // ExecuteSqlToResult 返回结果(执行自定义SQL) func (receiver *internalContext) ExecuteSqlToResult(arrayOrEntity any, sql string, values ...any) { - receiver.Original().Raw(sql, values...).Find(&arrayOrEntity) + receiver.Original().Raw(sql, values...).Find(arrayOrEntity) }