🐛 fix(query): 统一处理 []byte(nil) 为 NULL,修复表格数据显示异常

- 覆盖 mysql/postgres/kingbase/oracle/dameng/sqlite/custom 的 Query 返回值转换
  - 修正可编辑表格保存范围,避免状态残留影响显示
This commit is contained in:
杨国锋
2026-02-03 14:27:10 +08:00
parent aa7651d95c
commit 2ca27ebfb0
8 changed files with 37 additions and 8 deletions

View File

@@ -112,7 +112,11 @@ rows, err := p.conn.Query(query)
val := values[i]
b, ok := val.([]byte)
if ok {
v = string(b)
if b == nil {
v = nil
} else {
v = string(b)
}
} else {
v = val
}