From f7eb6e53885ae3d56042bcb058028e4b008b18b6 Mon Sep 17 00:00:00 2001 From: Nimo Chu <3949015+nimoc@users.noreply.github.com> Date: Fri, 7 Jun 2024 10:40:30 +0800 Subject: [PATCH] Update query_builder.go --- query_builder.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/query_builder.go b/query_builder.go index e2db0a3..a72fffb 100644 --- a/query_builder.go +++ b/query_builder.go @@ -290,7 +290,7 @@ func (qb QB) SQL(statement Statement) Raw { warningTitle := "goclub/sql: (NO SELECT FIELD)" var warning string if qb.From != nil { - warning = "qb.From field does not have db struct tag( XXX string `db:\"name\"` ), or you forget set qb.Select" + warning = "qb.From field does not have db struct tag or you forget set qb.Select" } else { warning = "qb.Select is empty and qb.Form is nil, maybe you forget set qb.Select" }