1
1
mirror of https://github.com/go-gitea/gitea synced 2025-08-24 18:38:28 +00:00

Upgrade xorm to v1.2.4 (#17059)

This commit is contained in:
Lunny Xiao
2021-09-15 23:27:46 +08:00
committed by GitHub
parent 6a025d8b4a
commit 1f8df5dd89
13 changed files with 150 additions and 162 deletions

View File

@@ -325,6 +325,9 @@ func AssignValue(dv reflect.Value, src interface{}) error {
if src == nil {
return nil
}
if v, ok := src.(*interface{}); ok {
return AssignValue(dv, *v)
}
if dv.Type().Implements(scannerType) {
return dv.Interface().(sql.Scanner).Scan(src)