forked from mirror/gorm
Fix Scan int32, uint32 (#3801)
This commit is contained in:
parent
0f77500917
commit
acedbb8310
2
scan.go
2
scan.go
|
@ -84,7 +84,7 @@ func Scan(rows *sql.Rows, db *DB, initialized bool) {
|
||||||
scanIntoMap(mapValue, values, columns)
|
scanIntoMap(mapValue, values, columns)
|
||||||
*dest = append(*dest, mapValue)
|
*dest = append(*dest, mapValue)
|
||||||
}
|
}
|
||||||
case *int, *int64, *uint, *uint64, *float32, *float64, *string, *time.Time:
|
case *int, *int32, *int64, *uint, *uint32, *uint64, *float32, *float64, *string, *time.Time:
|
||||||
for initialized || rows.Next() {
|
for initialized || rows.Next() {
|
||||||
initialized = false
|
initialized = false
|
||||||
db.RowsAffected++
|
db.RowsAffected++
|
||||||
|
|
Loading…
Reference in New Issue