mirror of https://github.com/go-gorm/gorm.git
Allow scan into float close #1373
This commit is contained in:
parent
1fdc66710e
commit
9039e36cfc
2
scan.go
2
scan.go
|
@ -62,7 +62,7 @@ func Scan(rows *sql.Rows, db *DB, initialized bool) {
|
||||||
|
|
||||||
*dest = append(*dest, mapValue)
|
*dest = append(*dest, mapValue)
|
||||||
}
|
}
|
||||||
case *int, *int64, *uint, *uint64:
|
case *int, *int64, *uint, *uint64, *float32, *float64:
|
||||||
for initialized || rows.Next() {
|
for initialized || rows.Next() {
|
||||||
initialized = false
|
initialized = false
|
||||||
db.RowsAffected++
|
db.RowsAffected++
|
||||||
|
|
Loading…
Reference in New Issue