From 82cf5a14d220e3c84cee475950228546c44b0e87 Mon Sep 17 00:00:00 2001 From: hoteas <925970985@qq.com> Date: Sat, 21 Mar 2026 20:51:58 +0800 Subject: [PATCH] =?UTF-8?q?refactor(db):=20=E7=A7=BB=E9=99=A4=20Row=20?= =?UTF-8?q?=E6=96=B9=E6=B3=95=E4=B8=AD=E7=9A=84=E5=88=97=E5=90=8D=E5=B0=8F?= =?UTF-8?q?=E5=86=99=E8=BD=AC=E6=8D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在 Row 方法中删除对列名的统一小写转换,保持原始列名格式 - 简化代码逻辑,提升可读性 --- db/query.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/db/query.go b/db/query.go index 6129e16..fb1c2de 100644 --- a/db/query.go +++ b/db/query.go @@ -557,8 +557,7 @@ func (that *HoTimeDB) Row(resl *sql.Rows) []Map { return nil } for j := 0; j < colCount; j++ { - // 统一转小写,兼容DM8等返回大写列名的数据库驱动 - colKey := strings.ToLower(strs[j]) + colKey := strs[j] val := a[j] if val == nil { lis[colKey] = nil