mirror of
https://github.com/go-gitea/gitea
synced 2025-07-22 18:28:37 +00:00
Co-authored-by: zeripath <art27@cantab.net>
This commit is contained in:
3
vendor/xorm.io/xorm/convert/conversion.go
generated
vendored
3
vendor/xorm.io/xorm/convert/conversion.go
generated
vendored
@@ -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)
|
||||
|
Reference in New Issue
Block a user