1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-23 02:38:35 +00:00

upgrade xorm to v1.0.6 (#14246)

This commit is contained in:
Lunny Xiao
2021-01-05 14:28:51 +08:00
committed by GitHub
parent 8db0372a45
commit 126c9331d6
19 changed files with 91 additions and 24 deletions

View File

@@ -86,7 +86,7 @@ func (statement *Statement) Value2Interface(col *schemas.Column, fieldValue refl
return t.Float64, nil
}
if !col.SQLType.IsJson() {
if !col.IsJSON {
// !<winxxp>! 增加支持driver.Valuer接口的结构如sql.NullString
if v, ok := fieldValue.Interface().(driver.Valuer); ok {
return v.Value()