From c94184a38511eaf46b29764dafd4e5afc713221a Mon Sep 17 00:00:00 2001 From: vlong Date: Fri, 7 Nov 2025 11:41:13 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=9B=A0=E5=A4=A7=E5=B0=8F?= =?UTF-8?q?=E5=86=99=E5=AF=BC=E8=87=B4=E6=89=BE=E4=B8=8D=E5=88=B0=E8=A1=A8?= =?UTF-8?q?=E4=B8=BB=E9=94=AE=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/internal/library/hgorm/dao.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/internal/library/hgorm/dao.go b/server/internal/library/hgorm/dao.go index fb91abd..fcb1ce2 100644 --- a/server/internal/library/hgorm/dao.go +++ b/server/internal/library/hgorm/dao.go @@ -143,7 +143,7 @@ func GetPkField(ctx context.Context, dao daoInstance) (string, error) { } for _, field := range fields { - if field.Key == "PRI" { + if strings.ToUpper(field.Key) == "PRI" { return field.Name, nil } }